]> git.sur5r.net Git - openldap/commitdiff
Add support for sizeof(short) == 4 when sizeof(int) > 4.
authorKurt Zeilenga <kurt@openldap.org>
Sat, 30 Oct 1999 02:53:24 +0000 (02:53 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 30 Oct 1999 02:53:24 +0000 (02:53 +0000)
include/ac/bytes.h

index 160f0bbc8e1b729a509909690465f8f31dc8a5ab..27dab6b7b2fb8f0b840e15c0c0b89bc9fad41d41 100644 (file)
@@ -21,6 +21,8 @@
 #              define AC_INT4_TYPE long
 #      elif SIZEOF_INT == 4
 #              define AC_INT4_TYPE int
+#      elif SIZEOF_SHORT == 4
+#              define AC_INT4_TYPE short
 #      else
 #              error "AC_INT4_TYPE?"
 #      endif
@@ -29,6 +31,8 @@
 #              define AC_INT2_TYPE short
 #      elif SIZEOF_INT == 2
 #              define AC_INT2_TYPE int
+#      elif SIZEOF_LONG == 2
+#              define AC_INT2_TYPE long
 #      else
 #              error "AC_INT2_TYPE?"
 #      endif