[Freeswitch-svn] [commit] r13392 - in freeswitch/trunk/src: . include

FreeSWITCH SVN mikej at freeswitch.org
Tue May 19 13:12:32 PDT 2009


Author: mikej
Date: Tue May 19 15:12:32 2009
New Revision: 13392

Log:
fix windows pch

Modified:
   freeswitch/trunk/src/include/switch.h
   freeswitch/trunk/src/switch_apr.c
   freeswitch/trunk/src/switch_core.c

Modified: freeswitch/trunk/src/include/switch.h
==============================================================================
--- freeswitch/trunk/src/include/switch.h	(original)
+++ freeswitch/trunk/src/include/switch.h	Tue May 19 15:12:32 2009
@@ -59,9 +59,19 @@
 #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>

Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c	(original)
+++ freeswitch/trunk/src/switch_apr.c	Tue May 19 15:12:32 2009
@@ -30,12 +30,6 @@
  *
  */
 
-#ifdef __linux__
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
-#endif
-
 #include <switch.h>
 #ifndef WIN32
 #include <switch_private.h>

Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c	(original)
+++ freeswitch/trunk/src/switch_core.c	Tue May 19 15:12:32 2009
@@ -34,9 +34,6 @@
  */
 
 
-#ifdef __linux__
-#define _BSD_SOURCE
-#endif
 
 #include <switch.h>
 #include <switch_version.h>



More information about the Freeswitch-svn mailing list