ORBit2 r2096 - in trunk/linc2: . src



Author: tml
Date: Thu Oct  2 11:43:55 2008
New Revision: 2096
URL: http://svn.gnome.org/viewvc/ORBit2?rev=2096&view=rev

Log:
2008-10-02  Tor Lillqvist  <tml novell com>

	* linc2/src/linc-debug.h: Always turn on the debug printout possibility
	on Windows.

	* linc2/src/Makefile.am: Don't use -DGNU_SOURCE on Windows as it
	confuses newest mingw headers.



Modified:
   trunk/linc2/ChangeLog
   trunk/linc2/src/Makefile.am
   trunk/linc2/src/linc-debug.h

Modified: trunk/linc2/src/Makefile.am
==============================================================================
--- trunk/linc2/src/Makefile.am	(original)
+++ trunk/linc2/src/Makefile.am	Thu Oct  2 11:43:55 2008
@@ -13,8 +13,12 @@
 	-I$(top_srcdir)/linc2/include    \
 	$(LINC_CFLAGS)             \
 	$(WARN_CFLAGS)             \
-	-DG_DISABLE_DEPRECATED	   \
-	-D_GNU_SOURCE
+	-DG_DISABLE_DEPRECATED
+
+if OS_WIN32
+else
+INCLUDES += -D_GNU_SOURCE
+endif
 
 liblinc_la_SOURCES =		\
 	linc.c			\

Modified: trunk/linc2/src/linc-debug.h
==============================================================================
--- trunk/linc2/src/linc-debug.h	(original)
+++ trunk/linc2/src/linc-debug.h	Thu Oct  2 11:43:55 2008
@@ -4,6 +4,13 @@
 /* Enables debug printout for the socket / connection */
 #undef CONNECTION_DEBUG
 
+/* Always turn on the possibility to get debug printout on Windows as
+ * it is much more often needed there.
+ */
+#ifdef _WIN32 
+#define CONNECTION_DEBUG
+#endif
+
 /* If CONNECTION_DEBUG is defined, define this to make it selectable
  * at runtime by setting the LINK_CONNECTION_DEBUG env var.
  */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]