diff options
author | Yang Tse <yangsita@gmail.com> | 2008-08-25 13:42:53 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-08-25 13:42:53 +0000 |
commit | 4962e1772d3a8102234f090efecae3bc887c4b4a (patch) | |
tree | 069101851351ea2aa4e69932563b2cf6f9a81ba4 /include | |
parent | d7d5618498ccf2a3acf7c92b3c83af9541529bd5 (diff) |
Add missing preprocessor symbol definition checks
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curlbuild.h.dist | 15 | ||||
-rw-r--r-- | include/curl/curlbuild.h.in | 19 |
2 files changed, 32 insertions, 2 deletions
diff --git a/include/curl/curlbuild.h.dist b/include/curl/curlbuild.h.dist index 9c2a79c4b..d5dc57597 100644 --- a/include/curl/curlbuild.h.dist +++ b/include/curl/curlbuild.h.dist @@ -109,6 +109,11 @@ /* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ /* ================================================================ */ +#ifdef CURL_SIZEOF_LONG +# error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined +#endif + #ifdef CURL_TYPEOF_CURL_OFF_T # error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h" Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined @@ -134,6 +139,16 @@ Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined #endif +#ifdef CURL_SUFFIX_CURL_OFF_T +# error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined +#endif + +#ifdef CURL_SUFFIX_CURL_OFF_TU +# error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined +#endif + /* ================================================================ */ /* EXTERNAL INTERFACE SETTINGS FOR NON-CONFIGURE SYSTEMS ONLY */ /* ================================================================ */ diff --git a/include/curl/curlbuild.h.in b/include/curl/curlbuild.h.in index db9809384..e1c0dc3d4 100644 --- a/include/curl/curlbuild.h.in +++ b/include/curl/curlbuild.h.in @@ -58,6 +58,11 @@ /* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */ /* ================================================================ */ +#ifdef CURL_SIZEOF_LONG +# error "CURL_SIZEOF_LONG shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_SIZEOF_LONG_already_defined +#endif + #ifdef CURL_TYPEOF_CURL_OFF_T # error "CURL_TYPEOF_CURL_OFF_T shall not be defined except in curlbuild.h" Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_already_defined @@ -83,6 +88,16 @@ Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_already_defined #endif +#ifdef CURL_SUFFIX_CURL_OFF_T +# error "CURL_SUFFIX_CURL_OFF_T shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_already_defined +#endif + +#ifdef CURL_SUFFIX_CURL_OFF_TU +# error "CURL_SUFFIX_CURL_OFF_TU shall not be defined except in curlbuild.h" + Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_already_defined +#endif + /* ================================================================ */ /* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */ /* ================================================================ */ @@ -108,7 +123,7 @@ # include <inttypes.h> #endif -/* The expected size of long , as to be computed by sizeof. */ +/* The size of `long', as computed by sizeof. */ #undef CURL_SIZEOF_LONG /* Signed integral data type used for curl_off_t. */ @@ -126,7 +141,7 @@ typedef CURL_TYPEOF_CURL_OFF_T curl_off_t; /* curl_off_t formatting string directive with "%" conversion specifier. */ #undef CURL_FORMAT_OFF_T -/* The expected size of curl_off_t, as to be computed by sizeof. */ +/* The size of `curl_off_t', as computed by sizeof. */ #undef CURL_SIZEOF_CURL_OFF_T /* curl_off_t constant suffix. */ |