[evolution] Replace _BSD_SOURCE with _DEFAULT_SOURCE define
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Replace _BSD_SOURCE with _DEFAULT_SOURCE define
- Date: Mon, 2 Feb 2015 17:02:05 +0000 (UTC)
commit de4f0e8130819b91465f78d4af82ba88fdc3e1fb
Author: Milan Crha <mcrha redhat com>
Date: Mon Feb 2 18:03:28 2015 +0100
Replace _BSD_SOURCE with _DEFAULT_SOURCE define
To avoid compiler warning:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use
_DEFAULT_SOURCE" [-Wcpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
libgnomecanvas/gnome-canvas-util.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgnomecanvas/gnome-canvas-util.c b/libgnomecanvas/gnome-canvas-util.c
index 74ee32a..76b2c0a 100644
--- a/libgnomecanvas/gnome-canvas-util.c
+++ b/libgnomecanvas/gnome-canvas-util.c
@@ -34,8 +34,8 @@
#endif
/* needed for M_PI_2 under 'gcc -ansi -predantic' on GNU/Linux */
-#ifndef _BSD_SOURCE
-# define _BSD_SOURCE 1
+#ifndef _DEFAULT_SOURCE
+# define _DEFAULT_SOURCE 1
#endif
#include <sys/types.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]