diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-06-16 11:28:49 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2011-06-14 16:41:29 +0200 |
commit | 22c01e96f7b2ae9923e1baa50bfe3c0d22297a7d (patch) | |
tree | c4d92be56ea5a83d79920c3914a362b52d3ac6cc /ares_rules.h | |
parent | adf75c56c419e23be63de86913e587e502f74c5b (diff) | |
download | c-ares-22c01e96f7b2ae9923e1baa50bfe3c0d22297a7d.tar.gz c-ares-22c01e96f7b2ae9923e1baa50bfe3c0d22297a7d.tar.bz2 c-ares-22c01e96f7b2ae9923e1baa50bfe3c0d22297a7d.zip |
Do not use sized constants in public headers
Diffstat (limited to 'ares_rules.h')
-rw-r--r-- | ares_rules.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/ares_rules.h b/ares_rules.h index f94c5b5..334af51 100644 --- a/ares_rules.h +++ b/ares_rules.h @@ -68,21 +68,11 @@ * Verify that some macros are actually defined. */ -#ifndef CARES_SIZEOF_LONG -# error "CARES_SIZEOF_LONG definition is missing!" - Error Compilation_aborted_CARES_SIZEOF_LONG_is_missing -#endif - #ifndef CARES_TYPEOF_ARES_SOCKLEN_T # error "CARES_TYPEOF_ARES_SOCKLEN_T definition is missing!" Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_is_missing #endif -#ifndef CARES_SIZEOF_ARES_SOCKLEN_T -# error "CARES_SIZEOF_ARES_SOCKLEN_T definition is missing!" - Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_is_missing -#endif - /* * Macros private to this header file. */ @@ -92,25 +82,6 @@ #define CareschkszGE(t1, t2) sizeof(t1) >= sizeof(t2) ? 1 : -1 /* - * Verify that the size previously defined and expected for long - * is the same as the one reported by sizeof() at compile time. - */ - -typedef char - __cares_rule_01__ - [CareschkszEQ(long, CARES_SIZEOF_LONG)]; - -/* - * Verify that the size previously defined and expected for - * ares_socklen_t is actually the the same as the one reported - * by sizeof() at compile time. - */ - -typedef char - __cares_rule_02__ - [CareschkszEQ(ares_socklen_t, CARES_SIZEOF_ARES_SOCKLEN_T)]; - -/* * Verify at compile time that the size of ares_socklen_t as reported * by sizeof() is greater or equal than the one reported for int for * the current compilation. |