summaryrefslogtreecommitdiff
path: root/lib/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-10-17 16:58:32 +0000
committerYang Tse <yangsita@gmail.com>2007-10-17 16:58:32 +0000
commit92433e596b7fbfa5c75926705dcfef0080ebf012 (patch)
tree9dc076641396934683d15b962395dc6f11d36d5f /lib/setup_once.h
parent5360f88393c91758ed0f29fa65a9b15716589aa1 (diff)
downloadcurl-92433e596b7fbfa5c75926705dcfef0080ebf012.tar.gz
We use this ZERO_NULL to avoid picky compiler warnings,
when assigning a NULL pointer to a function pointer var.
Diffstat (limited to 'lib/setup_once.h')
-rw-r--r--lib/setup_once.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h
index 1622f0cc8..ba564120a 100644
--- a/lib/setup_once.h
+++ b/lib/setup_once.h
@@ -378,6 +378,14 @@ typedef int sig_atomic_t;
#endif
+/*
+ * We use this ZERO_NULL to avoid picky compiler warnings,
+ * when assigning a NULL pointer to a function pointer var.
+ */
+
+#define ZERO_NULL 0
+
+
#if defined (__LP64__) && defined(__hpux) && !defined(_XOPEN_SOURCE_EXTENDED)
#include <sys/socket.h>
/* HP-UX has this oddity where it features a few functions that don't work
@@ -460,5 +468,6 @@ inline static ssize_t Curl_hp_recvfrom(int s, void *buf, size_t len, int flags,
#endif /* HPUX work-around */
+
#endif /* __SETUP_ONCE_H */