]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix windows pch
authorMichael Jerris <mike@jerris.com>
Tue, 19 May 2009 20:12:32 +0000 (20:12 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 19 May 2009 20:12:32 +0000 (20:12 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13392 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch.h
src/switch_apr.c
src/switch_core.c

index c8a15a396d64b9d49b105fb0f3aac8dbae15d2b2..d72de701e0b5f98cb33e6256ad5937a7b58797fc 100644 (file)
 #define _XOPEN_SOURCE 600
 #endif
 #endif
+#ifdef __linux__
+#ifndef _BSD_SOURCE
+#define _BSD_SOURCE
+#endif
+#endif
 #ifndef __BSD_VISIBLE
 #define __BSD_VISIBLE 1
 #endif
+#ifdef __linux__
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+#endif
 #endif
 #include <stdlib.h>
 #include <stdio.h>
index f3409f25eb70e019b46cfc641c902931b75da040..55ddea5cd0025eadc61908331de24ef9800c9342 100644 (file)
  *
  */
 
-#ifdef __linux__
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-#endif
-
 #include <switch.h>
 #ifndef WIN32
 #include <switch_private.h>
index ecfe75cce5e435ff62d70e65c4c6330b2438560f..54805839b274d268ffca09d8368820dd7ccdf387 100644 (file)
@@ -34,9 +34,6 @@
  */
 
 
-#ifdef __linux__
-#define _BSD_SOURCE
-#endif
 
 #include <switch.h>
 #include <switch_version.h>