Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems

  • Loading branch information...
commit cef95aadebf0be4be6b4ed82e07f38cc83faf546 1 parent 697496f
@yangtse yangtse authored
View
2  lib/Makefile.netware
@@ -500,6 +500,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 2$(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) >> $@
View
3  lib/config-amigaos.h
@@ -85,6 +85,9 @@
#define NEED_MALLOC_H 1
+#define SIZEOF_INT 4
+#define SIZEOF_SHORT 2
+
#define USE_OPENSSL 1
#define USE_SSLEAY 1
#define CURL_DISABLE_LDAP 1
View
3  lib/config-mac.h
@@ -59,6 +59,9 @@
#define RETSIGTYPE void
+#define SIZEOF_INT 4
+#define SIZEOF_SHORT 2
+
#define HAVE_GETNAMEINFO 1
#define GETNAMEINFO_QUAL_ARG1 const
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
View
6 lib/config-os400.h
@@ -349,6 +349,9 @@
/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void
+/* The size of `int', as computed by sizeof. */
+#define SIZEOF_INT 4
+
/* The size of a `long double', as computed by sizeof. */
#define SIZEOF_LONG_DOUBLE 8
@@ -358,6 +361,9 @@
/* The size of a `long long', as computed by sizeof. */
#define SIZEOF_LONG_LONG 8
+/* The size of `short', as computed by sizeof. */
+#define SIZEOF_SHORT 2
+
/* Whether long long constants must be suffixed by LL. */
#define HAVE_LL
View
10 lib/config-riscos.h
@@ -338,12 +338,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
View
6 lib/config-symbian.h
@@ -709,9 +709,15 @@
/* Define to the type of arg 5 for `select'. */
#define SELECT_TYPE_ARG5 (struct timeval *)
+/* The size of `int', as computed by sizeof. */
+#define SIZEOF_INT 4
+
/* The size of `off_t', as computed by sizeof. */
#define SIZEOF_OFF_T 8
+/* The size of `short', as computed by sizeof. */
+#define SIZEOF_SHORT 2
+
/* The size of `size_t', as computed by sizeof. */
#define SIZEOF_SIZE_T 4
View
12 lib/config-tpf.h
@@ -598,13 +598,19 @@
/* Define to the type of arg 5 for `select'. */
#define SELECT_TYPE_ARG5 (struct timeval *)
-/* The size of an `off_t', as computed by sizeof. */
+/* The size of `int', as computed by sizeof. */
+#define SIZEOF_INT 4
+
+/* The size of `off_t', as computed by sizeof. */
#define SIZEOF_OFF_T 8
-/* The size of a `size_t', as computed by sizeof. */
+/* The size of `short', as computed by sizeof. */
+#define SIZEOF_SHORT 2
+
+/* The size of `size_t', as computed by sizeof. */
#define SIZEOF_SIZE_T 8
-/* The size of a `time_t', as computed by sizeof. */
+/* The size of `time_t', as computed by sizeof. */
#define SIZEOF_TIME_T 8
/* Define to 1 if you have the ANSI C header files. */
View
3  lib/config-vxworks.h
@@ -847,6 +847,9 @@
/* The size of `off_t', as computed by sizeof. */
#define SIZEOF_OFF_T 8
+/* The size of `short', as computed by sizeof. */
+#define SIZEOF_SHORT 2
+
/* The size of `size_t', as computed by sizeof. */
#define SIZEOF_SIZE_T 4
View
10 lib/config-win32.h
@@ -333,12 +333,18 @@
/* TYPE SIZES */
/* ---------------------------------------------------------------- */
-/* The number of bytes in a long double. */
+/* 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 number of bytes in a long long. */
+/* 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 */
/* ---------------------------------------------------------------- */
View
10 lib/config-win32ce.h
@@ -310,12 +310,18 @@
/* TYPE SIZES */
/* ---------------------------------------------------------------- */
-/* The number of bytes in a long double. */
+/* 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 number of bytes in a long long. */
+/* 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 */
/* ---------------------------------------------------------------- */
View
2  lib/config.dos
@@ -65,7 +65,9 @@
#define NEED_MALLOC_H 1
#define RETSIGTYPE void
+#define SIZEOF_INT 4
#define SIZEOF_LONG_DOUBLE 16
+#define SIZEOF_SHORT 2
#define STDC_HEADERS 1
#define TIME_WITH_SYS_TIME 1
View
2  lib/warnless.c
@@ -53,7 +53,7 @@
# define CURL_MASK_UINT 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
#endif
-#if (SIZEOF_LONG == 2)
+#if (CURL_SIZEOF_LONG == 2)
# define CURL_MASK_SLONG 0x7FFFL
# define CURL_MASK_ULONG 0xFFFFUL
#elif (SIZEOF_LONG == 4)
View
2  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) >> $@
View
3  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 */
View
3  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 */
View
10 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
View
16 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 */
/* ---------------------------------------------------------------- */
Please sign in to comment.
Something went wrong with that request. Please try again.