]> granicus.if.org Git - curl/commitdiff
Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems
authorYang Tse <yangsita@gmail.com>
Sun, 28 Feb 2010 02:51:35 +0000 (02:51 +0000)
committerYang Tse <yangsita@gmail.com>
Sun, 28 Feb 2010 02:51:35 +0000 (02:51 +0000)
ares/config-win32.h
ares/config.dos

index 48af822b930f664f4d82831bb3fd2be0be422665..d7b11797f711778fc8777a4fe47d470bf0ce36e6 100644 (file)
 #  endif
 #endif
 
+/* ---------------------------------------------------------------- */
+/*                            TYPE SIZES                            */
+/* ---------------------------------------------------------------- */
+
+/* The size of `int', as computed by sizeof. */
+#define SIZEOF_INT 4
+
+/* The size of `short', as computed by sizeof. */
+#define SIZEOF_SHORT 2
+
 /* ---------------------------------------------------------------- */
 /*                          STRUCT RELATED                          */
 /* ---------------------------------------------------------------- */
index fdf46a3593d06897440de6dd7a210c07bd2a46ef..7439aa350dfc8535b59a7fb4064db30807bd58a2 100644 (file)
@@ -31,6 +31,8 @@
 #define NEED_MALLOC_H          1
 
 #define RETSIGTYPE             void
+#define SIZEOF_INT             4
+#define SIZEOF_SHORT           2
 #define TIME_WITH_SYS_TIME     1
 
 /* Qualifiers for send(), recv(), recvfrom() and getnameinfo(). */