]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Add missing preprocessor symbol definition checks
authorYang Tse <yangsita@gmail.com>
Mon, 25 Aug 2008 13:42:53 +0000 (13:42 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 25 Aug 2008 13:42:53 +0000 (13:42 +0000)
include/curl/curlbuild.h.dist
include/curl/curlbuild.h.in

index 9c2a79c4b2ab1f6ecc93af6a9b23b6e58515a4b8..d5dc57597e7fd31a33764fb086e61ad2e002d86f 100644 (file)
 /*  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
    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    */
 /* ================================================================ */
index db98093843e066b4190ca2a53b97707c25f70529..e1c0dc3d42fd795b7e14b4afd31bbc146526bb5a 100644 (file)
 /*  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
    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  */
 /* ================================================================ */
 #  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. */