summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-26 18:32:46 +0000
committerYang Tse <yangsita@gmail.com>2010-02-26 18:32:46 +0000
commitcef95aadebf0be4be6b4ed82e07f38cc83faf546 (patch)
tree25bc10d186d74e1289ce9fdb23bd553768aec8e3 /src
parent697496ff99be5842f380f8b2fd6789f623e376be (diff)
downloadcurl-cef95aadebf0be4be6b4ed82e07f38cc83faf546.tar.gz
Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.netware2
-rw-r--r--src/config-amigaos.h3
-rw-r--r--src/config-mac.h3
-rw-r--r--src/config-riscos.h10
-rw-r--r--src/config-win32.h16
5 files changed, 32 insertions, 2 deletions
diff --git a/src/Makefile.netware b/src/Makefile.netware
index b47eb68e6..cd021bb6e 100644
--- a/src/Makefile.netware
+++ b/src/Makefile.netware
@@ -488,6 +488,8 @@ endif
@echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@
@echo $(DL)#define HAVE_WRITEV 1$(DL) >> $@
@echo $(DL)#define RETSIGTYPE void$(DL) >> $@
+ @echo $(DL)#define SIZEOF_INT 4$(DL) >> $@
+ @echo $(DL)#define SIZEOF_SHORT 4$(DL) >> $@
@echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@
@echo $(DL)#define STDC_HEADERS 1$(DL) >> $@
@echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@
diff --git a/src/config-amigaos.h b/src/config-amigaos.h
index 01cc7da18..9ca624ebb 100644
--- a/src/config-amigaos.h
+++ b/src/config-amigaos.h
@@ -63,5 +63,8 @@
# define LONG_MIN (-0x7fffffffL-1) /* min value for a long */
#endif
+#define SIZEOF_INT 4
+#define SIZEOF_SHORT 2
+
#endif /* __AMIGA__ */
#endif /* CURL_CONFIG_AMIGAOS_H */
diff --git a/src/config-mac.h b/src/config-mac.h
index 8f54512f2..dc7f767aa 100644
--- a/src/config-mac.h
+++ b/src/config-mac.h
@@ -24,6 +24,9 @@
#define TIME_WITH_SYS_TIME 1
#define HAVE_STRUCT_TIMEVAL 1
+#define SIZEOF_INT 4
+#define SIZEOF_SHORT 2
+
#define main(x,y) curl_main(x,y)
/* we provide our own strdup prototype */
diff --git a/src/config-riscos.h b/src/config-riscos.h
index 222ff6359..ba95f13d0 100644
--- a/src/config-riscos.h
+++ b/src/config-riscos.h
@@ -329,12 +329,18 @@
/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void
-/* The size of a `long double', as computed by sizeof. */
+/* The size of `int', as computed by sizeof. */
+#define SIZEOF_INT 4
+
+/* The size of `long double', as computed by sizeof. */
#undef SIZEOF_LONG_DOUBLE
-/* The size of a `long long', as computed by sizeof. */
+/* The size of `long long', as computed by sizeof. */
#undef SIZEOF_LONG_LONG
+/* The size of `short', as computed by sizeof. */
+#define SIZEOF_SHORT 2
+
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
diff --git a/src/config-win32.h b/src/config-win32.h
index 22d1c7276..7dacb55ce 100644
--- a/src/config-win32.h
+++ b/src/config-win32.h
@@ -208,6 +208,22 @@
#endif
/* ---------------------------------------------------------------- */
+/* TYPE SIZES */
+/* ---------------------------------------------------------------- */
+
+/* The size of `int', as computed by sizeof. */
+#define SIZEOF_INT 4
+
+/* The size of `long double', as computed by sizeof. */
+#define SIZEOF_LONG_DOUBLE 16
+
+/* The size of `long long', as computed by sizeof. */
+/* #define SIZEOF_LONG_LONG 8 */
+
+/* The size of `short', as computed by sizeof. */
+#define SIZEOF_SHORT 2
+
+/* ---------------------------------------------------------------- */
/* STRUCT RELATED */
/* ---------------------------------------------------------------- */