summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-08-12 13:20:27 +0000
committerSimon Josefsson <simon@josefsson.org>2005-08-12 13:20:27 +0000
commitc911b9c5b20b02367fec6c51eac49c0b4c52fd94 (patch)
tree092980f65f19b18f25114069151adb6a25ddc3a7
parent089028b889cfda14f2643654a3109dcb5c3d5f98 (diff)
downloadlibtasn1-c911b9c5b20b02367fec6c51eac49c0b4c52fd94.tar.gz
libtasn1-c911b9c5b20b02367fec6c51eac49c0b4c52fd94.tar.bz2
libtasn1-c911b9c5b20b02367fec6c51eac49c0b4c52fd94.zip
Fix error.
-rw-r--r--lib/defines.h30
1 files changed, 14 insertions, 16 deletions
diff --git a/lib/defines.h b/lib/defines.h
index 743baab..87e2cf7 100644
--- a/lib/defines.h
+++ b/lib/defines.h
@@ -40,38 +40,36 @@
# include <sys/types.h>
#endif
-
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
# include <stdint.h>
# else
-#if SIZEOF_UNSIGNED_LONG_INT == 4
+# if SIZEOF_UNSIGNED_LONG_INT == 4
typedef unsigned long int uint32;
typedef signed long int sint32;
-#elif SIZEOF_UNSIGNED_INT == 4
+# elif SIZEOF_UNSIGNED_INT == 4
typedef unsigned int uint32;
typedef signed int sint32;
-#else
-# error "Cannot find a 32 bit integer in your system, sorry."
-#endif
-
-#if SIZEOF_UNSIGNED_INT == 2
+# else
+# error "Cannot find a 32 bit integer in your system, sorry."
+# endif
+# if SIZEOF_UNSIGNED_INT == 2
typedef unsigned int uint16;
typedef signed int sint16;
-#elif SIZEOF_UNSIGNED_SHORT_INT == 2
+# elif SIZEOF_UNSIGNED_SHORT_INT == 2
typedef unsigned short int uint16;
typedef signed short int sint16;
-#else
-# error "Cannot find a 16 bit integer in your system, sorry."
-#endif
-
-#if SIZEOF_UNSIGNED_CHAR == 1
+# else
+# error "Cannot find a 16 bit integer in your system, sorry."
+# endif
+# if SIZEOF_UNSIGNED_CHAR == 1
typedef unsigned char uint8;
typedef signed char int8;
-#else
-# error "Cannot find an 8 bit char in your system, sorry."
+# else
+# error "Cannot find an 8 bit char in your system, sorry."
+# endif
#endif
#endif /* defines_h */