aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2008-04-14 19:01:41 +0000
committerMichal Marek <mmarek@suse.cz>2008-04-14 19:01:41 +0000
commitaf41ada7aa5ee4db20107c8bd4a06fec3e422fb8 (patch)
tree3547559f8d73e70bcb0ea817f9e63278b6a68039 /include
parent6a33a4456e58a9332ebb9135c93bfca9266bb6f7 (diff)
allow disabling the typechecker by defining CURL_DISABLE_TYPECHECK, as
discussed in http://curl.haxx.se/mail/lib-2008-04/0291.html
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index bd188cdd1..ab6c863c4 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -1801,7 +1801,7 @@ CURL_EXTERN CURLcode curl_easy_pause(CURL *handle, int bitmask);
/* the typechecker doesn't work in C++ (yet) */
#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) && \
- !defined(__cplusplus)
+ !defined(__cplusplus) && !defined(CURL_DISABLE_TYPECHECK)
#include "typecheck-gcc.h"
#else
#if defined(__STDC__) && (__STDC__ >= 1)