summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-09-30 15:09:29 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-09-30 15:09:29 +0000
commit40bfb43e0ffe751242210ada2e6df46d38e14122 (patch)
treea8dde1dc32d0fec887ba068063a531deb057aa6c /src/common
parentedcc676ecf2738a99da39931b32b5e6e4f31d208 (diff)
downloadweechat-40bfb43e0ffe751242210ada2e6df46d38e14122.zip
Removed warnings with __USE_GNU and __USE_XOPEN
Diffstat (limited to 'src/common')
-rw-r--r--src/common/backtrace.c4
-rw-r--r--src/common/utf8.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/src/common/backtrace.c b/src/common/backtrace.c
index 8b76720bf..fb6ff71a1 100644
--- a/src/common/backtrace.c
+++ b/src/common/backtrace.c
@@ -28,7 +28,11 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
+
+#ifndef __USE_GNU
#define __USE_GNU
+#endif
+
#include <dlfcn.h>
#ifdef HAVE_BACKTRACE
diff --git a/src/common/utf8.c b/src/common/utf8.c
index 9379082e4..d1cfbd927 100644
--- a/src/common/utf8.c
+++ b/src/common/utf8.c
@@ -26,7 +26,10 @@
#include <stdlib.h>
#include <string.h>
+
+#ifndef __USE_XOPEN
#define __USE_XOPEN
+#endif
#if defined(__OpenBSD__)
#include <utf8/wchar.h>