git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-compat-util: Avoid strcasecmp() being inlined
@ 2013-09-11 16:06 Sebastian Schuberth
  2013-09-11 18:29 ` Jonathan Nieder
  2013-09-11 18:39 ` Junio C Hamano
  0 siblings, 2 replies; 48+ messages in thread
From: Sebastian Schuberth @ 2013-09-11 16:06 UTC (permalink / raw)
  To: git; +Cc: Karsten Blees

This is necessary so that read_mailmap() can obtain a pointer to the
function.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
---
 git-compat-util.h | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/git-compat-util.h b/git-compat-util.h
index be1c494..664305c 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -85,6 +85,13 @@
 #define _NETBSD_SOURCE 1
 #define _SGI_SOURCE 1
 
+#define __NO_INLINE__ /* do not inline strcasecmp() */
+#include <string.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h> /* for strcasecmp() */
+#endif
+#undef __NO_INLINE__
+
 #ifdef WIN32 /* Both MinGW and MSVC */
 #define _WIN32_WINNT 0x0502
 #define WIN32_LEAN_AND_MEAN  /* stops windows.h including winsock.h */
@@ -99,10 +106,6 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <string.h>
-#ifdef HAVE_STRINGS_H
-#include <strings.h> /* for strcasecmp() */
-#endif
 #include <errno.h>
 #include <limits.h>
 #ifdef NEEDS_SYS_PARAM_H
-- 
1.8.3.mingw.1.2.g56240b5.dirty

^ permalink raw reply related	[flat|nested] 48+ messages in thread

end of thread, other threads:[~2013-09-24  5:32 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11 16:06 [PATCH] git-compat-util: Avoid strcasecmp() being inlined Sebastian Schuberth
2013-09-11 18:29 ` Jonathan Nieder
2013-09-11 19:16   ` Jeff King
2013-09-19  6:04     ` Piotr Krukowiecki
     [not found]       ` <CAPc5daVt4Q9twub5KyOQqZHx9CwOnkuwA97sXV44fF2j1e5HVg@mail.gmail.com>
2013-09-19  9:47         ` Piotr Krukowiecki
2013-09-19 21:16           ` Jeff King
2013-09-19 22:03             ` Junio C Hamano
2013-09-19 22:05               ` Jeff King
2013-09-19 22:40                 ` Junio C Hamano
2013-09-20  3:18                   ` Jeff King
2013-09-20  6:21             ` Piotr Krukowiecki
2013-09-24  5:32               ` Jeff King
2013-09-11 19:59   ` Sebastian Schuberth
2013-09-11 21:41     ` Jeff King
2013-09-12  9:36       ` Sebastian Schuberth
2013-09-12 10:14         ` John Keeping
2013-09-12 15:37           ` Junio C Hamano
2013-09-12 18:20             ` Jeff King
2013-09-12 18:35               ` Junio C Hamano
2013-09-12 18:38                 ` Jonathan Nieder
2013-09-12 19:51                   ` Sebastian Schuberth
2013-09-12 20:08                     ` Junio C Hamano
2013-09-13 12:33                       ` Sebastian Schuberth
2013-09-13 14:26                         ` Junio C Hamano
2013-09-13 19:34                           ` Sebastian Schuberth
2013-09-12 21:36                     ` Jonathan Nieder
2013-09-12 19:00                 ` Jeff King
2013-09-12 19:46               ` Sebastian Schuberth
2013-09-12 20:22                 ` Jeff King
2013-09-12 20:29                   ` Junio C Hamano
2013-09-13 12:47                     ` Sebastian Schuberth
2013-09-13 14:37                       ` Junio C Hamano
2013-09-13 19:53                         ` Sebastian Schuberth
2013-09-13 19:56                           ` Linus Torvalds
2013-09-13 20:03                             ` Sebastian Schuberth
2013-09-13 20:01                           ` Junio C Hamano
2013-09-13 20:04                             ` Sebastian Schuberth
2013-09-13 22:06                               ` Junio C Hamano
2013-09-13 22:35                                 ` Junio C Hamano
2013-09-15 12:44                                 ` Sebastian Schuberth
2013-09-17 16:17                                   ` Junio C Hamano
2013-09-17 19:16                                     ` Sebastian Schuberth
2013-09-17 21:46                                       ` Junio C Hamano
2013-09-18  9:43                                         ` Sebastian Schuberth
2013-09-18 12:19                                           ` Linus Torvalds
2013-09-12 21:31                 ` Jonathan Nieder
2013-09-19 13:47                   ` Sebastian Schuberth
2013-09-11 18:39 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).