Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems

This commit is contained in:
Yang Tse 2010-02-26 18:32:46 +00:00
parent 697496ff99
commit cef95aadeb
17 changed files with 91 additions and 12 deletions

View file

@ -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 file

@ -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 file

@ -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 file

@ -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 file

@ -207,6 +207,22 @@
# endif
#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 */
/* ---------------------------------------------------------------- */