]> www.wagner.pp.ru Git - oss/catdoc.git/blobdiff - src/catdoc.h
Applied most patches from Debian package. Rewrote configure to work with modern autoc...
[oss/catdoc.git] / src / catdoc.h
index b69a2d2af624d7abeccdaa37a8b4defe7cda635e..9f64c86105dd4603fc710221ff09e8c3416f7ecd 100644 (file)
 #include <config.h>
 #endif
 
 #include <config.h>
 #endif
 
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#else
+/* If there is no stdint.h, lets define some common integer types
+ * ourselves */
+#define int16_t        short int
+#define uint16_t unsigned short int
+#ifdef __MSDOS__
+/* MS-DOS is only supported platform where int is 16-bit */
+#define int32_t  long int
+#define uint32_t unsigned long int
+#else
+#define int32_t int
+#define uint32_t unsigned int
+#endif
+#endif
+
+
 /* There is some strange thing on aix */
 #if (defined(_AIX)||defined(___AIX)) && !defined(__unix)
 # define __unix 1
 /* There is some strange thing on aix */
 #if (defined(_AIX)||defined(___AIX)) && !defined(__unix)
 # define __unix 1
@@ -230,7 +248,7 @@ extern char *input_buffer,*output_buffer;
        char *strdup(const char *s);
 #endif
 /* numeric conversions */      
        char *strdup(const char *s);
 #endif
 /* numeric conversions */      
-long int getlong(unsigned char *buffer,int offset);
-unsigned long int getulong(unsigned char *buffer,int offset);
-unsigned int getshort(unsigned char *buffer,int offset);
+int32_t getlong(unsigned char *buffer,int offset);
+uint32_t getulong(unsigned char *buffer,int offset);
+uint16_t getshort(unsigned char *buffer,int offset);
 #endif
 #endif