src/rrd_daemon.c: Re-introduce the strict C99/POSIX defines.
authorFlorian Forster <octo@leeloo.home.verplant.org>
Sun, 14 Sep 2008 08:15:37 +0000 (10:15 +0200)
committerFlorian Forster <octo@leeloo.home.verplant.org>
Sun, 14 Sep 2008 08:15:37 +0000 (10:15 +0200)
They're commented out using `#if 0' because Kevin reported problems with
it. This way they can easily be activated for development and debugging.

src/rrd_daemon.c

index 75e7af0..79b908d 100644 (file)
  *   kevin brintnall <kbrint@rufus.net>
  **/
 
+#if 0
+/*
+ * First tell the compiler to stick to the C99 and POSIX standards as close as
+ * possible.
+ */
+#ifndef __STRICT_ANSI__ /* {{{ */
+# define __STRICT_ANSI__
+#endif
+
+#ifndef _ISOC99_SOURCE
+# define _ISOC99_SOURCE
+#endif
+
+#ifdef _POSIX_C_SOURCE
+# undef _POSIX_C_SOURCE
+#endif
+#define _POSIX_C_SOURCE 200112L
+
+/* Single UNIX needed for strdup. */
+#ifdef _XOPEN_SOURCE
+# undef _XOPEN_SOURCE
+#endif
+#define _XOPEN_SOURCE 500
+
 #ifndef _REENTRANT
 # define _REENTRANT
 #endif
 # define _THREAD_SAFE
 #endif
 
+#ifdef _GNU_SOURCE
+# undef _GNU_SOURCE
+#endif
 /* }}} */
+#endif /* 0 */
 
 /*
  * Now for some includes..