From 24d47a6e07304cf0921f2d30734b3c64360773c3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 2 Nov 2004 10:12:22 +0000 Subject: Paul Nolan fix to make libcurl build nicely on Windows CE --- lib/config-win32ce.h | 258 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 258 insertions(+) create mode 100644 lib/config-win32ce.h (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h new file mode 100644 index 000000000..e217d4c81 --- /dev/null +++ b/lib/config-win32ce.h @@ -0,0 +1,258 @@ +/* config.h. Generated automatically by configure. */ +/* config.h.in. Generated automatically from configure.in by autoheader. */ + +#ifndef __CONFIG_WIN32_H +#define __CONFIG_WIN32_H + +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +/* #undef _ALL_SOURCE */ +#endif + +/* Define to empty if the keyword does not work. */ +/* #undef const */ + +/* Define if you don't have vprintf but do have _doprnt. */ +/* #undef HAVE_DOPRNT */ + +/* Define if you have the vprintf function. */ +#define HAVE_VPRINTF 1 + +/* Define as the return type of signal handlers (int or void). */ +/*#define RETSIGTYPE void */ + +/* Define to `unsigned' if doesn't define. */ +/* #undef size_t */ + +/* Define this to 'int' if ssize_t is not an available typedefed type */ +#define ssize_t int + +/* Define this to 'int' if socklen_t is not an available typedefed type */ +#if !defined(ENABLE_IPV6) && ((_MSC_VER < 1300) || !defined(USE_SSLEAY)) +#define socklen_t int +#endif + +/* The size of a `curl_off_t', as computed by sizeof. */ +#ifdef SIZEOF_CURL_OFF_T +#undef SIZEOF_CURL_OFF_T +#endif + +/* Borland lacks _lseeki64(), so we don't support >2GB files */ +#define SIZEOF_CURL_OFF_T 4 + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Define if you can safely include both and . */ +/* #define TIME_WITH_SYS_TIME 1 */ + +/* Define cpu-machine-OS */ +#define OS "i386-pc-win32" + +/* The number of bytes in a long double. */ +#define SIZEOF_LONG_DOUBLE 16 + +/* The number of bytes in a long long. */ +/* #define SIZEOF_LONG_LONG 8 */ + +/* Define if you have the gethostbyaddr function. */ +#define HAVE_GETHOSTBYADDR 1 + +/* Define if you have the gethostname function. */ +#define HAVE_GETHOSTNAME 1 + +/* Define if you have the getpass function. */ +/*#define HAVE_GETPASS 1*/ + +/* Define if you have the getservbyname function. */ +#define HAVE_GETSERVBYNAME 1 + +/* Define if you have the gettimeofday function. */ +/* #define HAVE_GETTIMEOFDAY 1 */ + +/* Define if you have the inet_addr function. */ +#define HAVE_INET_ADDR 1 + +/* Define if you have the inet_ntoa function. */ +#define HAVE_INET_NTOA 1 + +/* Define if you have the perror function. */ +#define HAVE_PERROR 1 + +/* Define if you have the select function. */ +#define HAVE_SELECT 1 + +/* Define if you have the socket function. */ +#define HAVE_SOCKET 1 + +/* Define if you have the strcasecmp function. */ +/*#define HAVE_STRCASECMP 1*/ + +/* Define if you have the stricmp function. */ +//#define HAVE_STRICMP 1 + +/* Define if you have the strdup function. */ +//#define HAVE_STRDUP 1 + +/* Define if you have the strftime function. */ +//#define HAVE_STRFTIME 1 + +/* Define if you have the strstr function. */ +#define HAVE_STRSTR 1 + +/* Define if you have the strtoll function. */ +#ifdef MINGW32 +#define HAVE_STRTOLL 1 +#endif + +/* Define if you have the tcgetattr function. */ +/*#define HAVE_TCGETATTR 1*/ + +/* Define if you have the tcsetattr function. */ +/*#define HAVE_TCSETATTR 1*/ + +/* Define if you have the uname function. */ +/*#define HAVE_UNAME 1*/ + +/* Define if you have utime() */ +#define HAVE_UTIME 1 + +/* Define if you have the header file. */ +/*#define HAVE_ALLOCA_H 1*/ + +/* Define if you have the malloc.h file. */ +#define HAVE_MALLOC_H 1 + +/* Define if you have the header file. */ +/* #define HAVE_ARPA_INET_H 1 */ + +/* Define if you have the header file. */ +//#define HAVE_ASSERT_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_CRYPTO_H */ + +/* Define if you have the header file. */ +/*#define HAVE_DLFCN_H 1*/ + +/* Define if you have the header file. */ +/* #undef HAVE_ERR_H */ + +/* Define if you have the header file. */ +#define HAVE_FCNTL_H 1 + +/* Define if you have the header file. */ +/* #undef HAVE_GETOPT_H */ + +/* Define if you have the header file. */ +/* #define HAVE_NETDB_H 1 */ + +/* Define if you have the header file. */ +/*#define HAVE_NETINET_IN_H 1*/ + +/* Define if you have the header file. */ +/*#define HAVE_SGTTY_H 1*/ + +/* Define if you have the header file. */ +/* #undef HAVE_SSL_H */ + +/* Define if you have the header file. */ +/*#define HAVE_SYS_PARAM_H 1*/ + +/* Define if you have the header file. */ +/* #define HAVE_SYS_SELECT_H 1 */ + +/* Define if you have the header file. */ +/*#define HAVE_SYS_SOCKET_H 1*/ + +/* Define if you have the header file. */ +/* #define HAVE_SYS_SOCKIO_H 1 */ + +/* Define if you have the header file. */ +//#define HAVE_SYS_STAT_H 1 + +/* Define if you have the header file */ +#define HAVE_SYS_UTIME_H 1 + +/* Define if you have the header file. */ +//#define HAVE_SYS_TYPES_H 1 + +/* Define if you have the header file. */ +/* #define HAVE_TERMIO_H 1 */ + +/* Define if you have the header file. */ +/* #define HAVE_TERMIOS_H 1 */ + +/* Name of package */ +#define PACKAGE "curl" + +/* Define if you have the header file. */ +#define HAVE_IO_H 1 + +/* Define if you have the header file. */ +#define HAVE_TIME_H 1 + +/* Define if you have the header file. */ +#define HAVE_WINSOCK_H 1 + +/* Define if you have the header file. */ +//#define HAVE_WINSOCK2_H 1 + +/* Define if you have the header file. */ +//#define HAVE_WS2TCPIP_H 1 + +/* Define if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the closesocket function. */ +#define HAVE_CLOSESOCKET 1 + +/* Define if you have the setvbuf function. */ +#define HAVE_SETVBUF 1 + +/* Define if you have the RAND_screen function when using SSL */ +#define HAVE_RAND_SCREEN 1 + +/* Define if you have the `RAND_status' function. */ +#define HAVE_RAND_STATUS 1 + +/* Define this to if in_addr_t is not an available typedefed type */ +#define in_addr_t unsigned long + +/* use ioctlsocket() for non-blocking sockets */ +#define HAVE_IOCTLSOCKET + +/************************************************* + * This section is for compiler specific defines.* + *************************************************/ +/* Borland and MS don't have this */ +#if defined(MINGW32) || defined(__WATCOMC__) || defined(__LCC__) + +/* Define if you have the header file. */ +#define HAVE_UNISTD_H 1 + +#else + +#endif + +/* WinCE */ + +#define CURL_DISABLE_FILE + +#define CURL_DISABLE_TELNET +#define CURL_DISABLE_LDAP +#define WITHOUT_MM_LIB + +#include +#include + +extern int errno; + +#define ENOSPC 1 +#define ENOMEM 2 + +extern int stat(const char *path,struct stat *buffer ); + +#endif -- cgit v1.2.1 From edeac97773f3e1f32ecd8bc7a9894bd3b391df73 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 5 Nov 2004 08:19:34 +0000 Subject: it has a sys/stat.h file, according to Paul Nolan --- lib/config-win32ce.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index e217d4c81..e34ef6f55 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -171,7 +171,7 @@ /* #define HAVE_SYS_SOCKIO_H 1 */ /* Define if you have the header file. */ -//#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_STAT_H 1 /* Define if you have the header file */ #define HAVE_SYS_UTIME_H 1 -- cgit v1.2.1 From f10985fc50aa469785f6618e05caa89a8c53542f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 5 Nov 2004 08:22:46 +0000 Subject: removed errno, added EAGAIN --- lib/config-win32ce.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index e34ef6f55..bf2690c86 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -248,10 +248,9 @@ #include #include -extern int errno; - #define ENOSPC 1 #define ENOMEM 2 +#define EAGAIN 3 extern int stat(const char *path,struct stat *buffer ); -- cgit v1.2.1 From 592686bee98b50093c11245466552eaf6e0b92f1 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Mon, 8 Nov 2004 14:21:24 +0000 Subject: Change OS name. Fix header guard. --- lib/config-win32ce.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index bf2690c86..e15b28a71 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -1,8 +1,8 @@ /* config.h. Generated automatically by configure. */ /* config.h.in. Generated automatically from configure.in by autoheader. */ -#ifndef __CONFIG_WIN32_H -#define __CONFIG_WIN32_H +#ifndef __CONFIG_WIN32CE_H +#define __CONFIG_WIN32CE_H /* Define if on AIX 3. System headers sometimes define this. @@ -40,7 +40,7 @@ #endif /* Borland lacks _lseeki64(), so we don't support >2GB files */ -#define SIZEOF_CURL_OFF_T 4 +#define SIZEOF_CURL_OFF_T 4 /* Define if you have the ANSI C header files. */ #define STDC_HEADERS 1 @@ -49,7 +49,7 @@ /* #define TIME_WITH_SYS_TIME 1 */ /* Define cpu-machine-OS */ -#define OS "i386-pc-win32" +#define OS "i386-pc-win32ce" /* The number of bytes in a long double. */ #define SIZEOF_LONG_DOUBLE 16 -- cgit v1.2.1 From fe5979cfdba009b356bdffafcb9b46ad0570abf1 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Mon, 6 Dec 2004 14:43:04 +0000 Subject: Replace MINGW32 with built-in __MINGW32__. --- lib/config-win32ce.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index e15b28a71..84c5eb8f6 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -103,7 +103,7 @@ #define HAVE_STRSTR 1 /* Define if you have the strtoll function. */ -#ifdef MINGW32 +#ifdef __MINGW32__ #define HAVE_STRTOLL 1 #endif @@ -228,7 +228,7 @@ * This section is for compiler specific defines.* *************************************************/ /* Borland and MS don't have this */ -#if defined(MINGW32) || defined(__WATCOMC__) || defined(__LCC__) +#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) /* Define if you have the header file. */ #define HAVE_UNISTD_H 1 -- cgit v1.2.1 From e105d5c28f3f6c7034a8da2682bbc662ad6c15e1 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 16 Dec 2005 20:55:07 +0000 Subject: 'Fix' windows builds --- lib/config-win32ce.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 84c5eb8f6..ffc89d0b2 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -194,6 +194,9 @@ /* Define if you have the header file. */ #define HAVE_TIME_H 1 +/* Define if you have the header file. */ +#define HAVE_WINDOWS_H 1 + /* Define if you have the header file. */ #define HAVE_WINSOCK_H 1 -- cgit v1.2.1 From 23b34744d9d3ec2623b5f6be5051ab7e094f63e8 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 17 Dec 2005 21:20:35 +0000 Subject: Cleanup --- lib/config-win32ce.h | 348 +++++++++++++++++++++++++++++---------------------- 1 file changed, 200 insertions(+), 148 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index ffc89d0b2..e25bb733d 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -1,46 +1,109 @@ -/* config.h. Generated automatically by configure. */ -/* config.h.in. Generated automatically from configure.in by autoheader. */ +#ifndef __LIB_CONFIG_WIN32CE_H +#define __LIB_CONFIG_WIN32CE_H -#ifndef __CONFIG_WIN32CE_H -#define __CONFIG_WIN32CE_H +/* ================================================================ */ +/* lib/config-win32ce.h - Hand crafted config file for windows ce */ +/* ================================================================ */ -/* Define if on AIX 3. - System headers sometimes define this. - We just want to avoid a redefinition error message. */ -#ifndef _ALL_SOURCE -/* #undef _ALL_SOURCE */ -#endif +/* ---------------------------------------------------------------- */ +/* HEADER FILES */ +/* ---------------------------------------------------------------- */ -/* Define to empty if the keyword does not work. */ -/* #undef const */ +/* Define if you have the header file. */ +/* #define HAVE_ALLOCA_H 1 */ -/* Define if you don't have vprintf but do have _doprnt. */ -/* #undef HAVE_DOPRNT */ +/* Define if you have the header file. */ +/* #define HAVE_ARPA_INET_H 1 */ -/* Define if you have the vprintf function. */ -#define HAVE_VPRINTF 1 +/* Define if you have the header file. */ +/* #define HAVE_ASSERT_H 1 */ -/* Define as the return type of signal handlers (int or void). */ -/*#define RETSIGTYPE void */ +/* Define if you have the header file. */ +/* #undef HAVE_CRYPTO_H */ -/* Define to `unsigned' if doesn't define. */ -/* #undef size_t */ +/* Define if you have the header file. */ +/* #define HAVE_DLFCN_H 1 */ -/* Define this to 'int' if ssize_t is not an available typedefed type */ -#define ssize_t int +/* Define if you have the header file. */ +/* #undef HAVE_ERR_H */ -/* Define this to 'int' if socklen_t is not an available typedefed type */ -#if !defined(ENABLE_IPV6) && ((_MSC_VER < 1300) || !defined(USE_SSLEAY)) -#define socklen_t int -#endif +/* Define if you have the header file. */ +#define HAVE_FCNTL_H 1 -/* The size of a `curl_off_t', as computed by sizeof. */ -#ifdef SIZEOF_CURL_OFF_T -#undef SIZEOF_CURL_OFF_T +/* Define if you have the header file. */ +/* #undef HAVE_GETOPT_H */ + +/* Define if you have the header file. */ +#define HAVE_IO_H 1 + +/* Define if you have the header file. */ +#define HAVE_MALLOC_H 1 + +/* Define if you have the header file. */ +/* #define HAVE_NETDB_H 1 */ + +/* Define if you have the header file. */ +/* #define HAVE_NETINET_IN_H 1*/ + +/* Define if you have the header file. */ +/* #define HAVE_SGTTY_H 1*/ + +/* Define if you have the header file. */ +/* #undef HAVE_SSL_H */ + +/* Define if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define if you have the header file. */ +/* #define HAVE_SYS_PARAM_H 1*/ + +/* Define if you have the header file. */ +/* #define HAVE_SYS_SELECT_H 1 */ + +/* Define if you have the header file. */ +/* #define HAVE_SYS_SOCKET_H 1*/ + +/* Define if you have the header file. */ +/* #define HAVE_SYS_SOCKIO_H 1 */ + +/* Define if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define if you have the header file. */ +/* #define HAVE_SYS_TYPES_H 1 */ + +/* Define if you have the header file */ +#define HAVE_SYS_UTIME_H 1 + +/* Define if you have the header file. */ +/* #define HAVE_TERMIO_H 1 */ + +/* Define if you have the header file. */ +/* #define HAVE_TERMIOS_H 1 */ + +/* Define if you have the header file. */ +#define HAVE_TIME_H 1 + +/* Define if you have the header file. */ +#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) +#define HAVE_UNISTD_H 1 #endif -/* Borland lacks _lseeki64(), so we don't support >2GB files */ -#define SIZEOF_CURL_OFF_T 4 +/* Define if you have the header file. */ +#define HAVE_WINDOWS_H 1 + +/* Define if you have the header file. */ +#define HAVE_WINSOCK_H 1 + +/* Define if you have the header file. */ +/* #define HAVE_WINSOCK2_H 1 */ + +/* Define if you have the header file. */ +/* #define HAVE_WS2TCPIP_H 1 */ + +/* ---------------------------------------------------------------- */ +/* OTHER HEADER INFO */ +/* ---------------------------------------------------------------- */ /* Define if you have the ANSI C header files. */ #define STDC_HEADERS 1 @@ -48,14 +111,15 @@ /* Define if you can safely include both and . */ /* #define TIME_WITH_SYS_TIME 1 */ -/* Define cpu-machine-OS */ -#define OS "i386-pc-win32ce" +/* ---------------------------------------------------------------- */ +/* FUNCTIONS */ +/* ---------------------------------------------------------------- */ -/* The number of bytes in a long double. */ -#define SIZEOF_LONG_DOUBLE 16 +/* Define if you have the closesocket function. */ +#define HAVE_CLOSESOCKET 1 -/* The number of bytes in a long long. */ -/* #define SIZEOF_LONG_LONG 8 */ +/* Define if you don't have vprintf but do have _doprnt. */ +/* #undef HAVE_DOPRNT */ /* Define if you have the gethostbyaddr function. */ #define HAVE_GETHOSTBYADDR 1 @@ -64,7 +128,7 @@ #define HAVE_GETHOSTNAME 1 /* Define if you have the getpass function. */ -/*#define HAVE_GETPASS 1*/ +/* #define HAVE_GETPASS 1 */ /* Define if you have the getservbyname function. */ #define HAVE_GETSERVBYNAME 1 @@ -78,178 +142,166 @@ /* Define if you have the inet_ntoa function. */ #define HAVE_INET_NTOA 1 +/* Define if you have the ioctlsocket function. */ +#define HAVE_IOCTLSOCKET + /* Define if you have the perror function. */ #define HAVE_PERROR 1 +/* Define if you have the RAND_screen function when using SSL */ +#define HAVE_RAND_SCREEN 1 + +/* Define if you have the `RAND_status' function when using SSL. */ +#define HAVE_RAND_STATUS 1 + /* Define if you have the select function. */ #define HAVE_SELECT 1 +/* Define if you have the setvbuf function. */ +#define HAVE_SETVBUF 1 + /* Define if you have the socket function. */ #define HAVE_SOCKET 1 /* Define if you have the strcasecmp function. */ -/*#define HAVE_STRCASECMP 1*/ +/* #define HAVE_STRCASECMP 1 */ /* Define if you have the stricmp function. */ -//#define HAVE_STRICMP 1 +/* #define HAVE_STRICMP 1 */ /* Define if you have the strdup function. */ -//#define HAVE_STRDUP 1 +/* #define HAVE_STRDUP 1 */ /* Define if you have the strftime function. */ -//#define HAVE_STRFTIME 1 +/* #define HAVE_STRFTIME 1 */ /* Define if you have the strstr function. */ #define HAVE_STRSTR 1 /* Define if you have the strtoll function. */ -#ifdef __MINGW32__ +#ifdef __MINGW32__ #define HAVE_STRTOLL 1 #endif /* Define if you have the tcgetattr function. */ -/*#define HAVE_TCGETATTR 1*/ +/* #define HAVE_TCGETATTR 1 */ /* Define if you have the tcsetattr function. */ -/*#define HAVE_TCSETATTR 1*/ +/* #define HAVE_TCSETATTR 1 */ /* Define if you have the uname function. */ -/*#define HAVE_UNAME 1*/ +/* #define HAVE_UNAME 1 */ -/* Define if you have utime() */ +/* Define if you have the utime function */ #define HAVE_UTIME 1 -/* Define if you have the header file. */ -/*#define HAVE_ALLOCA_H 1*/ +/* Define if you have the vprintf function. */ +#define HAVE_VPRINTF 1 -/* Define if you have the malloc.h file. */ -#define HAVE_MALLOC_H 1 +/* ---------------------------------------------------------------- */ +/* TYPEDEF REPLACEMENTS */ +/* ---------------------------------------------------------------- */ -/* Define if you have the header file. */ -/* #define HAVE_ARPA_INET_H 1 */ +/* Define this if in_addr_t is not an available 'typedefed' type */ +#define in_addr_t unsigned long -/* Define if you have the header file. */ -//#define HAVE_ASSERT_H 1 +/* Define as the return type of signal handlers (int or void). */ +/* #define RETSIGTYPE void */ -/* Define if you have the header file. */ -/* #undef HAVE_CRYPTO_H */ +/* Define to `unsigned' if size_t is not an available 'typedefed' type */ +/* #define size_t unsigned */ -/* Define if you have the header file. */ -/*#define HAVE_DLFCN_H 1*/ +/* Define to 'int' if ssize_t is not an available 'typedefed' type */ +#define ssize_t int -/* Define if you have the header file. */ -/* #undef HAVE_ERR_H */ +/* Define to 'int' if socklen_t is not an available 'typedefed' type */ +#ifndef HAVE_WS2TCPIP_H +#define socklen_t int +#endif -/* Define if you have the header file. */ -#define HAVE_FCNTL_H 1 +/* ---------------------------------------------------------------- */ +/* TYPE SIZES */ +/* ---------------------------------------------------------------- */ -/* Define if you have the header file. */ -/* #undef HAVE_GETOPT_H */ +/* The number of bytes in a long double. */ +#define SIZEOF_LONG_DOUBLE 16 -/* Define if you have the header file. */ -/* #define HAVE_NETDB_H 1 */ +/* The number of bytes in a long long. */ +/* #define SIZEOF_LONG_LONG 8 */ -/* Define if you have the header file. */ -/*#define HAVE_NETINET_IN_H 1*/ +/* Undef SIZEOF_CURL_OFF_T if already defined. */ +#ifdef SIZEOF_CURL_OFF_T +#undef SIZEOF_CURL_OFF_T +#endif -/* Define if you have the header file. */ -/*#define HAVE_SGTTY_H 1*/ +/* Define SIZEOF_CURL_OFF_T as computed by sizeof(curl_off_t) */ +#define SIZEOF_CURL_OFF_T 4 -/* Define if you have the header file. */ -/* #undef HAVE_SSL_H */ +/* ---------------------------------------------------------------- */ +/* STRUCT RELATED */ +/* ---------------------------------------------------------------- */ -/* Define if you have the header file. */ -/*#define HAVE_SYS_PARAM_H 1*/ +/* Define this if you have struct sockaddr_storage */ +/* #define HAVE_STRUCT_SOCKADDR_STORAGE */ -/* Define if you have the header file. */ -/* #define HAVE_SYS_SELECT_H 1 */ +/* ---------------------------------------------------------------- */ +/* COMPILER SPECIFIC */ +/* ---------------------------------------------------------------- */ -/* Define if you have the header file. */ -/*#define HAVE_SYS_SOCKET_H 1*/ +/* Undef keyword 'const' if it does not work. */ +/* #undef const */ -/* Define if you have the header file. */ -/* #define HAVE_SYS_SOCKIO_H 1 */ +/* ---------------------------------------------------------------- */ +/* LDAP LIBRARY FILES */ +/* ---------------------------------------------------------------- */ -/* Define if you have the header file. */ -#define HAVE_SYS_STAT_H 1 +/* lber dynamic library file */ +/* #undef DL_LBER_FILE */ -/* Define if you have the header file */ -#define HAVE_SYS_UTIME_H 1 +/* ldap dynamic library file */ +/* #define DL_LDAP_FILE "wldap32.dll" */ -/* Define if you have the header file. */ -//#define HAVE_SYS_TYPES_H 1 +/* ---------------------------------------------------------------- */ +/* ADDITIONAL DEFINITIONS */ +/* ---------------------------------------------------------------- */ -/* Define if you have the header file. */ -/* #define HAVE_TERMIO_H 1 */ +/* Defines set for VS2005 to _not_ deprecate a few functions we use. */ +#define _CRT_SECURE_NO_DEPRECATE +#define _CRT_NONSTDC_NO_DEPRECATE -/* Define if you have the header file. */ -/* #define HAVE_TERMIOS_H 1 */ +/* Define cpu-machine-OS */ +#undef OS +#define OS "i386-pc-win32ce" /* Name of package */ #define PACKAGE "curl" -/* Define if you have the header file. */ -#define HAVE_IO_H 1 - -/* Define if you have the header file. */ -#define HAVE_TIME_H 1 - -/* Define if you have the header file. */ -#define HAVE_WINDOWS_H 1 - -/* Define if you have the header file. */ -#define HAVE_WINSOCK_H 1 - -/* Define if you have the header file. */ -//#define HAVE_WINSOCK2_H 1 - -/* Define if you have the header file. */ -//#define HAVE_WS2TCPIP_H 1 - -/* Define if you have the header file. */ -#define HAVE_STDLIB_H 1 - -/* Define if you have the closesocket function. */ -#define HAVE_CLOSESOCKET 1 - -/* Define if you have the setvbuf function. */ -#define HAVE_SETVBUF 1 - -/* Define if you have the RAND_screen function when using SSL */ -#define HAVE_RAND_SCREEN 1 - -/* Define if you have the `RAND_status' function. */ -#define HAVE_RAND_STATUS 1 - -/* Define this to if in_addr_t is not an available typedefed type */ -#define in_addr_t unsigned long - -/* use ioctlsocket() for non-blocking sockets */ -#define HAVE_IOCTLSOCKET - -/************************************************* - * This section is for compiler specific defines.* - *************************************************/ -/* Borland and MS don't have this */ -#if defined(__MINGW32__) || defined(__WATCOMC__) || defined(__LCC__) - -/* Define if you have the header file. */ -#define HAVE_UNISTD_H 1 - -#else - -#endif - -/* WinCE */ +/* ---------------------------------------------------------------- */ +/* WinCE */ +/* ---------------------------------------------------------------- */ #define CURL_DISABLE_FILE - #define CURL_DISABLE_TELNET #define CURL_DISABLE_LDAP #define WITHOUT_MM_LIB -#include -#include +#ifdef HAVE_WINDOWS_H +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif +# include +# ifdef HAVE_WINSOCK2_H +# include +# ifdef HAVE_WS2TCPIP_H +# include +# endif +# else +# ifdef HAVE_WINSOCK_H +# include +# endif +# endif +# include +#endif #define ENOSPC 1 #define ENOMEM 2 @@ -257,4 +309,4 @@ extern int stat(const char *path,struct stat *buffer ); -#endif +#endif /* __LIB_CONFIG_WIN32CE_H */ -- cgit v1.2.1 From 0ad3e046a43bfa18f86ae9b32b7ee585d06e2b35 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 18 Dec 2005 16:50:33 +0000 Subject: Fix spacing. When defining, define to 1. --- lib/config-win32ce.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index e25bb733d..2b1436613 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -19,19 +19,19 @@ /* #define HAVE_ASSERT_H 1 */ /* Define if you have the header file. */ -/* #undef HAVE_CRYPTO_H */ +/* #define HAVE_CRYPTO_H 1 */ /* Define if you have the header file. */ /* #define HAVE_DLFCN_H 1 */ /* Define if you have the header file. */ -/* #undef HAVE_ERR_H */ +/* #define HAVE_ERR_H 1 */ /* Define if you have the header file. */ #define HAVE_FCNTL_H 1 /* Define if you have the header file. */ -/* #undef HAVE_GETOPT_H */ +/* #define HAVE_GETOPT_H 1 */ /* Define if you have the header file. */ #define HAVE_IO_H 1 @@ -43,25 +43,25 @@ /* #define HAVE_NETDB_H 1 */ /* Define if you have the header file. */ -/* #define HAVE_NETINET_IN_H 1*/ +/* #define HAVE_NETINET_IN_H 1 */ /* Define if you have the header file. */ -/* #define HAVE_SGTTY_H 1*/ +/* #define HAVE_SGTTY_H 1 */ /* Define if you have the header file. */ -/* #undef HAVE_SSL_H */ +/* #define HAVE_SSL_H 1 */ /* Define if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define if you have the header file. */ -/* #define HAVE_SYS_PARAM_H 1*/ +/* #define HAVE_SYS_PARAM_H 1 */ /* Define if you have the header file. */ /* #define HAVE_SYS_SELECT_H 1 */ /* Define if you have the header file. */ -/* #define HAVE_SYS_SOCKET_H 1*/ +/* #define HAVE_SYS_SOCKET_H 1 */ /* Define if you have the header file. */ /* #define HAVE_SYS_SOCKIO_H 1 */ @@ -119,7 +119,7 @@ #define HAVE_CLOSESOCKET 1 /* Define if you don't have vprintf but do have _doprnt. */ -/* #undef HAVE_DOPRNT */ +/* #define HAVE_DOPRNT 1 */ /* Define if you have the gethostbyaddr function. */ #define HAVE_GETHOSTBYADDR 1 @@ -143,7 +143,7 @@ #define HAVE_INET_NTOA 1 /* Define if you have the ioctlsocket function. */ -#define HAVE_IOCTLSOCKET +#define HAVE_IOCTLSOCKET 1 /* Define if you have the perror function. */ #define HAVE_PERROR 1 @@ -179,7 +179,7 @@ #define HAVE_STRSTR 1 /* Define if you have the strtoll function. */ -#ifdef __MINGW32__ +#if defined(__MINGW32__) || defined(__WATCOMC__) #define HAVE_STRTOLL 1 #endif @@ -242,7 +242,7 @@ /* ---------------------------------------------------------------- */ /* Define this if you have struct sockaddr_storage */ -/* #define HAVE_STRUCT_SOCKADDR_STORAGE */ +/* #define HAVE_STRUCT_SOCKADDR_STORAGE 1 */ /* ---------------------------------------------------------------- */ /* COMPILER SPECIFIC */ @@ -256,7 +256,7 @@ /* ---------------------------------------------------------------- */ /* lber dynamic library file */ -/* #undef DL_LBER_FILE */ +/* #define DL_LBER_FILE */ /* ldap dynamic library file */ /* #define DL_LDAP_FILE "wldap32.dll" */ @@ -266,8 +266,8 @@ /* ---------------------------------------------------------------- */ /* Defines set for VS2005 to _not_ deprecate a few functions we use. */ -#define _CRT_SECURE_NO_DEPRECATE -#define _CRT_NONSTDC_NO_DEPRECATE +#define _CRT_SECURE_NO_DEPRECATE 1 +#define _CRT_NONSTDC_NO_DEPRECATE 1 /* Define cpu-machine-OS */ #undef OS @@ -280,10 +280,10 @@ /* WinCE */ /* ---------------------------------------------------------------- */ -#define CURL_DISABLE_FILE -#define CURL_DISABLE_TELNET -#define CURL_DISABLE_LDAP -#define WITHOUT_MM_LIB +#define CURL_DISABLE_FILE 1 +#define CURL_DISABLE_TELNET 1 +#define CURL_DISABLE_LDAP 1 +#define WITHOUT_MM_LIB 1 #ifdef HAVE_WINDOWS_H # ifndef WIN32_LEAN_AND_MEAN -- cgit v1.2.1 From a65a888866aecb4651cc6f7ed7c80fe1008f7199 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 17 Feb 2006 15:58:21 +0000 Subject: Fix spacing. --- lib/config-win32ce.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 2b1436613..2ec147a91 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -277,7 +277,7 @@ #define PACKAGE "curl" /* ---------------------------------------------------------------- */ -/* WinCE */ +/* WinCE */ /* ---------------------------------------------------------------- */ #define CURL_DISABLE_FILE 1 -- cgit v1.2.1 From 414c57d138b9fe21eeecde730d9369eaedbdbc89 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Wed, 26 Apr 2006 17:11:05 +0000 Subject: Added support for Salford-C under Win32 (scc). HAVE_MALLOC_H and HAVE_PROCESS_H added for all except scc. --- lib/config-win32ce.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 2ec147a91..5e9f6e4e1 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -54,6 +54,9 @@ /* Define if you have the header file. */ #define HAVE_STDLIB_H 1 +/* Define if you have the header file. */ +#define HAVE_PROCESS_H 1 + /* Define if you have the header file. */ /* #define HAVE_SYS_PARAM_H 1 */ @@ -277,7 +280,7 @@ #define PACKAGE "curl" /* ---------------------------------------------------------------- */ -/* WinCE */ +/* WinCE */ /* ---------------------------------------------------------------- */ #define CURL_DISABLE_FILE 1 -- cgit v1.2.1 From 89f54f373979d182dfec4ddb7c9adbccbca9f2f1 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 4 Jul 2006 16:10:13 +0000 Subject: Platforms that don't have/run configure need default values in their config files for: HAVE_GETNAMEINFO, GETNAMEINFO_QUAL_ARG1, GETNAMEINFO_TYPE_ARG1, GETNAMEINFO_TYPE_ARG2, GETNAMEINFO_TYPE_ARG46, GETNAMEINFO_TYPE_ARG7 HAVE_RECV, RECV_TYPE_ARG1, RECV_TYPE_ARG2, RECV_TYPE_ARG3, RECV_TYPE_ARG4, RECV_TYPE_RETV HAVE_SEND, SEND_TYPE_ARG1, SEND_TYPE_ARG2, SEND_TYPE_ARG3, SEND_TYPE_ARG4, SEND_TYPE_RETV --- lib/config-win32ce.h | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 5e9f6e4e1..1b90858c5 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -201,6 +201,60 @@ /* Define if you have the vprintf function. */ #define HAVE_VPRINTF 1 +/* Define if you have the getnameinfo function. */ +#define HAVE_GETNAMEINFO 1 + +/* Define to the type qualifier of arg 1 for getnameinfo. */ +#define GETNAMEINFO_QUAL_ARG1 const + +/* Define to the type of arg 1 for getnameinfo. */ +#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * + +/* Define to the type of arg 2 for getnameinfo. */ +#define GETNAMEINFO_TYPE_ARG2 socklen_t + +/* Define to the type of args 4 and 6 for getnameinfo. */ +#define GETNAMEINFO_TYPE_ARG46 DWORD + +/* Define to the type of arg 7 for getnameinfo. */ +#define GETNAMEINFO_TYPE_ARG7 int + +/* Define if you have the recv function. */ +#define HAVE_RECV 1 + +/* Define to the type of arg 1 for recv. */ +#define RECV_TYPE_ARG1 SOCKET + +/* Define to the type of arg 2 for recv. */ +#define RECV_TYPE_ARG2 char * + +/* Define to the type of arg 3 for recv. */ +#define RECV_TYPE_ARG3 int + +/* Define to the type of arg 4 for recv. */ +#define RECV_TYPE_ARG4 int + +/* Define to the function return type for recv. */ +#define RECV_TYPE_RETV int + +/* Define if you have the send function. */ +#define HAVE_SEND 1 + +/* Define to the type of arg 1 for send. */ +#define SEND_TYPE_ARG1 SOCKET + +/* Define to the type of arg 2 for send. */ +#define SEND_TYPE_ARG2 char * + +/* Define to the type of arg 3 for send. */ +#define SEND_TYPE_ARG3 int + +/* Define to the type of arg 4 for send. */ +#define SEND_TYPE_ARG4 int + +/* Define to the function return type for send. */ +#define SEND_TYPE_RETV int + /* ---------------------------------------------------------------- */ /* TYPEDEF REPLACEMENTS */ /* ---------------------------------------------------------------- */ -- cgit v1.2.1 From 7e43d06b602f5158b7240b03efad7f7066d0650d Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 4 Jul 2006 16:54:10 +0000 Subject: Get qualifier of arg 2 for send() apart into SEND_QUAL_ARG2. --- lib/config-win32ce.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 1b90858c5..68829ba59 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -243,6 +243,9 @@ /* Define to the type of arg 1 for send. */ #define SEND_TYPE_ARG1 SOCKET +/* Define to the type qualifier of arg 2 for send. */ +#define SEND_QUAL_ARG2 const + /* Define to the type of arg 2 for send. */ #define SEND_TYPE_ARG2 char * -- cgit v1.2.1 From fe22872d14c3b6b63ac27a9017ed9695ac3b932b Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 11 Jul 2006 21:34:23 +0000 Subject: include only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined. --- lib/config-win32ce.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 68829ba59..6230fc4ca 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -39,6 +39,9 @@ /* Define if you have the header file. */ #define HAVE_MALLOC_H 1 +/* Define if you need the malloc.h header file. */ +#define NEED_MALLOC_H 1 + /* Define if you have the header file. */ /* #define HAVE_NETDB_H 1 */ -- cgit v1.2.1 From 13616f8f96b12bbbec1ca40ea4356560a456cc11 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 25 Jul 2006 13:49:49 +0000 Subject: Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H shall be defined if header file must be included even when including . --- lib/config-win32ce.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 6230fc4ca..f9796a302 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -39,7 +39,7 @@ /* Define if you have the header file. */ #define HAVE_MALLOC_H 1 -/* Define if you need the malloc.h header file. */ +/* Define if you need the malloc.h header header file even with stdlib.h */ #define NEED_MALLOC_H 1 /* Define if you have the header file. */ -- cgit v1.2.1 From dc3ed353132f853dc3ddee410a4f9423534a8289 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 14 Oct 2006 12:01:44 +0000 Subject: Define HAVE_STRUCT_TIMEVAL as appropriate for platforms that lack autotools support --- lib/config-win32ce.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index f9796a302..21afc4268 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -75,6 +75,9 @@ /* Define if you have the header file. */ #define HAVE_SYS_STAT_H 1 +/* Define if you have the header file */ +/* #define HAVE_SYS_TIME_H 1 */ + /* Define if you have the header file. */ /* #define HAVE_SYS_TYPES_H 1 */ @@ -307,6 +310,9 @@ /* Define this if you have struct sockaddr_storage */ /* #define HAVE_STRUCT_SOCKADDR_STORAGE 1 */ +/* Define this if you have struct timeval */ +#define HAVE_STRUCT_TIMEVAL 1 + /* ---------------------------------------------------------------- */ /* COMPILER SPECIFIC */ /* ---------------------------------------------------------------- */ -- cgit v1.2.1 From bcd8a3b2403d6269a121c469273880021f2cfb20 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 24 Nov 2006 16:38:58 +0000 Subject: Define HAVE_SIGNAL_H, HAVE_SIG_ATOMIC_T and HAVE_SIG_ATOMIC_T_VOLATILE as appropriate for platforms that don't have autotools support --- lib/config-win32ce.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 21afc4268..fc516f264 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -48,6 +48,9 @@ /* Define if you have the header file. */ /* #define HAVE_NETINET_IN_H 1 */ +/* Define if you have the header file. */ +#define HAVE_SIGNAL_H 1 + /* Define if you have the header file. */ /* #define HAVE_SGTTY_H 1 */ @@ -114,6 +117,9 @@ /* OTHER HEADER INFO */ /* ---------------------------------------------------------------- */ +/* Define if sig_atomic_t is an available typedef. */ +#define HAVE_SIG_ATOMIC_T 1 + /* Define if you have the ANSI C header files. */ #define STDC_HEADERS 1 -- cgit v1.2.1 From a46f55b9de423b4084982467d6f28f69a64ab8f3 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 25 Nov 2006 01:02:52 +0000 Subject: Make sure RETSIGTYPE is properly defined --- lib/config-win32ce.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index fc516f264..fc038aad9 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -278,13 +278,15 @@ #define in_addr_t unsigned long /* Define as the return type of signal handlers (int or void). */ -/* #define RETSIGTYPE void */ +#define RETSIGTYPE void -/* Define to `unsigned' if size_t is not an available 'typedefed' type */ -/* #define size_t unsigned */ - -/* Define to 'int' if ssize_t is not an available 'typedefed' type */ +/* Define ssize_t if it is not an available 'typedefed' type */ +#if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__) +#elif defined(_WIN64) +#define ssize_t __int64 +#else #define ssize_t int +#endif /* Define to 'int' if socklen_t is not an available 'typedefed' type */ #ifndef HAVE_WS2TCPIP_H -- cgit v1.2.1 From 34ed4642ecec17ec3f3bf6bba304a07b141458cd Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Tue, 20 Mar 2007 16:30:14 +0000 Subject: Remove unneeded 'HAVE_*' defines. --- lib/config-win32ce.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index fc038aad9..c8dc35c3f 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -9,9 +9,6 @@ /* HEADER FILES */ /* ---------------------------------------------------------------- */ -/* Define if you have the header file. */ -/* #define HAVE_ALLOCA_H 1 */ - /* Define if you have the header file. */ /* #define HAVE_ARPA_INET_H 1 */ @@ -36,9 +33,6 @@ /* Define if you have the header file. */ #define HAVE_IO_H 1 -/* Define if you have the header file. */ -#define HAVE_MALLOC_H 1 - /* Define if you need the malloc.h header header file even with stdlib.h */ #define NEED_MALLOC_H 1 @@ -204,15 +198,9 @@ /* Define if you have the tcsetattr function. */ /* #define HAVE_TCSETATTR 1 */ -/* Define if you have the uname function. */ -/* #define HAVE_UNAME 1 */ - /* Define if you have the utime function */ #define HAVE_UTIME 1 -/* Define if you have the vprintf function. */ -#define HAVE_VPRINTF 1 - /* Define if you have the getnameinfo function. */ #define HAVE_GETNAMEINFO 1 -- cgit v1.2.1 From d0edb478964cb5bf7446c34d5ac1e9d34dc5ca63 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 11 Aug 2007 20:57:54 +0000 Subject: Patrick Monnerat modified the LDAP code and approach in curl. Starting now, the configure script checks for openldap and friends and we link with those libs just like we link all other third party libraries, and we no longer dlopen() those libraries. Our private header file lib/ldap.h was renamed to lib/curl_ldap.h due to this. I set a tag in CVS (curl-7_17_0-preldapfix) just before this commit, just in case. --- lib/config-win32ce.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index c8dc35c3f..e7d157202 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -18,9 +18,6 @@ /* Define if you have the header file. */ /* #define HAVE_CRYPTO_H 1 */ -/* Define if you have the header file. */ -/* #define HAVE_DLFCN_H 1 */ - /* Define if you have the header file. */ /* #define HAVE_ERR_H 1 */ @@ -317,14 +314,12 @@ /* #undef const */ /* ---------------------------------------------------------------- */ -/* LDAP LIBRARY FILES */ +/* LDAP SUPPORT */ /* ---------------------------------------------------------------- */ -/* lber dynamic library file */ -/* #define DL_LBER_FILE */ - -/* ldap dynamic library file */ -/* #define DL_LDAP_FILE "wldap32.dll" */ +#define CURL_LDAP_WIN 1 +#undef CURL_LDAP_HYBRID +#undef HAVE_LDAP_URL_PARSE /* ---------------------------------------------------------------- */ /* ADDITIONAL DEFINITIONS */ -- cgit v1.2.1 From 08c5e2a194876be4db31536ac0211695c12aa266 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 24 Oct 2007 14:39:07 +0000 Subject: Windows build targets have socklen_t definition in ws2tcpip.h but some versions of ws2tcpip.h do not have the definition. It seems that when the socklen_t definition is missing from ws2tcpip.h the definition for INET_ADDRSTRLEN is also missing, and that when one definition is present the other one also is available. --- lib/config-win32ce.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index e7d157202..4d4016079 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -273,11 +273,6 @@ #define ssize_t int #endif -/* Define to 'int' if socklen_t is not an available 'typedefed' type */ -#ifndef HAVE_WS2TCPIP_H -#define socklen_t int -#endif - /* ---------------------------------------------------------------- */ /* TYPE SIZES */ /* ---------------------------------------------------------------- */ -- cgit v1.2.1 From dee3844f130994f720588cdac9931e202d252641 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 7 Nov 2007 18:18:42 +0000 Subject: MSVC versions prior to VS2005 do not complain about portable C functions --- lib/config-win32ce.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 4d4016079..7531d4b1f 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -308,6 +308,12 @@ /* Undef keyword 'const' if it does not work. */ /* #undef const */ +/* Define to avoid VS2005 complaining about portable C functions */ +#if defined(_MSC_VER) && (_MSC_VER >= 1400) +#define _CRT_SECURE_NO_DEPRECATE 1 +#define _CRT_NONSTDC_NO_DEPRECATE 1 +#endif + /* ---------------------------------------------------------------- */ /* LDAP SUPPORT */ /* ---------------------------------------------------------------- */ @@ -320,10 +326,6 @@ /* ADDITIONAL DEFINITIONS */ /* ---------------------------------------------------------------- */ -/* Defines set for VS2005 to _not_ deprecate a few functions we use. */ -#define _CRT_SECURE_NO_DEPRECATE 1 -#define _CRT_NONSTDC_NO_DEPRECATE 1 - /* Define cpu-machine-OS */ #undef OS #define OS "i386-pc-win32ce" -- cgit v1.2.1 From 8e9e33ae52b7b17d57c9fc8694e2f77fab11ae03 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 7 Mar 2008 02:49:14 +0000 Subject: VS2005 and later dafault size for time_t is 64-bit, unless _USE_32BIT_TIME_T has been defined to get a 32-bit time_t --- lib/config-win32ce.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 7531d4b1f..6c0fb411f 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -314,6 +314,16 @@ #define _CRT_NONSTDC_NO_DEPRECATE 1 #endif +/* VS2005 and later dafault size for time_t is 64-bit, unless */ +/* _USE_32BIT_TIME_T has been defined to get a 32-bit time_t. */ +#if defined(_MSC_VER) && (_MSC_VER >= 1400) +# ifndef _USE_32BIT_TIME_T +# define SIZEOF_TIME_T 8 +# else +# define SIZEOF_TIME_T 4 +# endif +#endif + /* ---------------------------------------------------------------- */ /* LDAP SUPPORT */ /* ---------------------------------------------------------------- */ -- cgit v1.2.1 From f48eb36f758ca4d92bc45c0a9255d9becc3fe320 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 21 Apr 2008 19:17:42 +0000 Subject: HAVE_FFLUSH and HAVE_FSYNC symbol definitions for WIN32 systems --- lib/config-win32ce.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 6c0fb411f..715f1c3e6 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -127,6 +127,14 @@ /* Define if you don't have vprintf but do have _doprnt. */ /* #define HAVE_DOPRNT 1 */ +/* Define if you have the fflush function. */ +#if defined(_WIN32_WCE) && (_WIN32_WCE >= 200) +# define HAVE_FFLUSH 1 +#endif + +/* Define if you have the fsync function. */ +/* #define HAVE_FSYNC 1 */ + /* Define if you have the gethostbyaddr function. */ #define HAVE_GETHOSTBYADDR 1 -- cgit v1.2.1 From 95fd093c4a49aca1015e178a5c08ca9dd9234bef Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 22 Apr 2008 12:40:05 +0000 Subject: Remove fflush() + fsync() previously introduced accelerated writing of server input and response request files of the test harness sws server. Reintroduce, for test # 1001, the small delay. The delay is needed even with the accelerated writing of server input and response request files in test harness sws server. http://curl.haxx.se/mail/lib-2008-04/0385.html --- lib/config-win32ce.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 715f1c3e6..6c0fb411f 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -127,14 +127,6 @@ /* Define if you don't have vprintf but do have _doprnt. */ /* #define HAVE_DOPRNT 1 */ -/* Define if you have the fflush function. */ -#if defined(_WIN32_WCE) && (_WIN32_WCE >= 200) -# define HAVE_FFLUSH 1 -#endif - -/* Define if you have the fsync function. */ -/* #define HAVE_FSYNC 1 */ - /* Define if you have the gethostbyaddr function. */ #define HAVE_GETHOSTBYADDR 1 -- cgit v1.2.1 From 19479ea0217c93fd2973168084d1bb724eb8a34f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 9 May 2008 16:31:51 +0000 Subject: Internal time differences now use monotonic time source if available. This also implies the removal of the winmm.lib dependency for WIN32. --- lib/config-win32ce.h | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 6c0fb411f..b3f6c74ff 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -350,7 +350,6 @@ #define CURL_DISABLE_FILE 1 #define CURL_DISABLE_TELNET 1 #define CURL_DISABLE_LDAP 1 -#define WITHOUT_MM_LIB 1 #ifdef HAVE_WINDOWS_H # ifndef WIN32_LEAN_AND_MEAN -- cgit v1.2.1 From 32a83128e63b723c10b5f914de11ef6a94bc5956 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 14 Jul 2008 15:30:26 +0000 Subject: Remove duplicate file inclusions. These are already done in lib/setup.h --- lib/config-win32ce.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index b3f6c74ff..0126cca78 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -351,24 +351,6 @@ #define CURL_DISABLE_TELNET 1 #define CURL_DISABLE_LDAP 1 -#ifdef HAVE_WINDOWS_H -# ifndef WIN32_LEAN_AND_MEAN -# define WIN32_LEAN_AND_MEAN -# endif -# include -# ifdef HAVE_WINSOCK2_H -# include -# ifdef HAVE_WS2TCPIP_H -# include -# endif -# else -# ifdef HAVE_WINSOCK_H -# include -# endif -# endif -# include -#endif - #define ENOSPC 1 #define ENOMEM 2 #define EAGAIN 3 -- cgit v1.2.1 From a9dc900515a28dcf55b2901a8609072430087693 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 16 Jul 2008 19:16:41 +0000 Subject: Configure process now checks availability of recvfrom() socket function and finds out its return type and the types of its arguments. Added definitions for non-configure systems config files, and introduced macro sreadfrom which will be used on udp sockets as a recvfrom() wrapper. --- lib/config-win32ce.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 0126cca78..c9b9bea38 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -234,6 +234,30 @@ /* Define to the function return type for recv. */ #define RECV_TYPE_RETV int +/* Define if you have the recvfrom function. */ +#define HAVE_RECVFROM 1 + +/* Define to the type of arg 1 for recvfrom. */ +#define RECVFROM_TYPE_ARG1 SOCKET + +/* Define to the type of arg 2 for recvfrom. */ +#define RECVFROM_TYPE_ARG2 char * + +/* Define to the type of arg 3 for recvfrom. */ +#define RECVFROM_TYPE_ARG3 int + +/* Define to the type of arg 4 for recvfrom. */ +#define RECVFROM_TYPE_ARG4 int + +/* Define to the type of arg 5 for recvfrom. */ +#define RECVFROM_TYPE_ARG5 struct sockaddr * + +/* Define to the type of arg 6 for recvfrom. */ +#define RECVFROM_TYPE_ARG6 int * + +/* Define to the function return type for recvfrom. */ +#define RECVFROM_TYPE_RETV int + /* Define if you have the send function. */ #define HAVE_SEND 1 -- cgit v1.2.1 From 39f23aec6b3cd5e7e5dd9077d96f8eff37ff2b19 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 17 Jul 2008 03:07:54 +0000 Subject: RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined to the data type pointed by its respective argument and not the pointer type. --- lib/config-win32ce.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index c9b9bea38..347b78cbe 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -240,8 +240,8 @@ /* Define to the type of arg 1 for recvfrom. */ #define RECVFROM_TYPE_ARG1 SOCKET -/* Define to the type of arg 2 for recvfrom. */ -#define RECVFROM_TYPE_ARG2 char * +/* Define to the type pointed by arg 2 for recvfrom. */ +#define RECVFROM_TYPE_ARG2 char /* Define to the type of arg 3 for recvfrom. */ #define RECVFROM_TYPE_ARG3 int @@ -249,11 +249,11 @@ /* Define to the type of arg 4 for recvfrom. */ #define RECVFROM_TYPE_ARG4 int -/* Define to the type of arg 5 for recvfrom. */ -#define RECVFROM_TYPE_ARG5 struct sockaddr * +/* Define to the type pointed by arg 5 for recvfrom. */ +#define RECVFROM_TYPE_ARG5 struct sockaddr -/* Define to the type of arg 6 for recvfrom. */ -#define RECVFROM_TYPE_ARG6 int * +/* Define to the type pointed by arg 6 for recvfrom. */ +#define RECVFROM_TYPE_ARG6 int /* Define to the function return type for recvfrom. */ #define RECVFROM_TYPE_RETV int -- cgit v1.2.1 From 14240e9e109fe6af19438c6531d573f85dbb0b1e Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 7 Aug 2008 00:29:08 +0000 Subject: Initial support of curlbuild.h and curlrules.h which allows to have a curl_off_t data type no longer gated to off_t. --- lib/config-win32ce.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 347b78cbe..21f7eea64 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -307,14 +307,6 @@ /* The number of bytes in a long long. */ /* #define SIZEOF_LONG_LONG 8 */ -/* Undef SIZEOF_CURL_OFF_T if already defined. */ -#ifdef SIZEOF_CURL_OFF_T -#undef SIZEOF_CURL_OFF_T -#endif - -/* Define SIZEOF_CURL_OFF_T as computed by sizeof(curl_off_t) */ -#define SIZEOF_CURL_OFF_T 4 - /* ---------------------------------------------------------------- */ /* STRUCT RELATED */ /* ---------------------------------------------------------------- */ -- cgit v1.2.1 From 9849c6b8479f18d983eadd58d7ba6f9feaaa8f6a Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 22 Aug 2008 18:09:03 +0000 Subject: Adjustments to better select/differentiate when large/small file support is provided using WIN32 functions directly. --- lib/config-win32ce.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 21f7eea64..50ddd18b8 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -340,6 +340,22 @@ # endif #endif +/* ---------------------------------------------------------------- */ +/* LARGE FILE SUPPORT */ +/* ---------------------------------------------------------------- */ + +#if defined(_MSC_VER) && !defined(_WIN32_WCE) +# if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64) +# define USE_WIN32_LARGE_FILES +# else +# define USE_WIN32_SMALL_FILES +# endif +#endif + +#if !defined(USE_WIN32_LARGE_FILES) && !defined(USE_WIN32_SMALL_FILES) +# define USE_WIN32_SMALL_FILES +#endif + /* ---------------------------------------------------------------- */ /* LDAP SUPPORT */ /* ---------------------------------------------------------------- */ -- cgit v1.2.1 From 842de91168f86858415069192782212526cc9ebe Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 15 Sep 2008 14:57:56 +0000 Subject: HAVE_STRNCASECMP and HAVE_STRNICMP definitions for WIN32 --- lib/config-win32ce.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 50ddd18b8..84a567883 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -172,15 +172,21 @@ /* Define if you have the strcasecmp function. */ /* #define HAVE_STRCASECMP 1 */ -/* Define if you have the stricmp function. */ -/* #define HAVE_STRICMP 1 */ - /* Define if you have the strdup function. */ /* #define HAVE_STRDUP 1 */ /* Define if you have the strftime function. */ /* #define HAVE_STRFTIME 1 */ +/* Define if you have the stricmp function. */ +/* #define HAVE_STRICMP 1 */ + +/* Define if you have the strncasecmp function. */ +/* #define HAVE_STRNCASECMP 1 */ + +/* Define if you have the strnicmp function. */ +/* #define HAVE_STRNICMP 1 */ + /* Define if you have the strstr function. */ #define HAVE_STRSTR 1 -- cgit v1.2.1 From 4e909ee8b1e7e9f174af629615224180568a7e92 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 24 Sep 2008 12:22:16 +0000 Subject: ntoa() and inet_ntoa_r() no longer used --- lib/config-win32ce.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 84a567883..b770a4472 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -145,9 +145,6 @@ /* Define if you have the inet_addr function. */ #define HAVE_INET_ADDR 1 -/* Define if you have the inet_ntoa function. */ -#define HAVE_INET_NTOA 1 - /* Define if you have the ioctlsocket function. */ #define HAVE_IOCTLSOCKET 1 -- cgit v1.2.1 From 17d2a464ad42c47ec37870e4b01a18ef5593877f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 13 Nov 2008 18:56:55 +0000 Subject: Refactor configure script detection of functions used to set sockets into non-blocking mode, and decouple function detection from function capability. --- lib/config-win32ce.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index b770a4472..cd793d6cc 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -145,9 +145,12 @@ /* Define if you have the inet_addr function. */ #define HAVE_INET_ADDR 1 -/* Define if you have the ioctlsocket function. */ +/* Define if you have the ioctlsocket function. */ #define HAVE_IOCTLSOCKET 1 +/* Define if you have a working ioctlsocket FIONBIO function. */ +#define HAVE_IOCTLSOCKET_FIONBIO 1 + /* Define if you have the perror function. */ #define HAVE_PERROR 1 -- cgit v1.2.1 From 104377d718654947f42f8812b17d1d3127c843a0 Mon Sep 17 00:00:00 2001 From: Gunter Knauf Date: Tue, 30 Dec 2008 07:31:04 +0000 Subject: added HAVE_SIN6_SCOPE_ID define to all non-configure platforms which seem to be IPv6-aware. --- lib/config-win32ce.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index cd793d6cc..65b00a104 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -323,6 +323,9 @@ /* Define this if you have struct timeval */ #define HAVE_STRUCT_TIMEVAL 1 +/* Define this if struct sockaddr_in6 has the sin6_scope_id member */ +#define HAVE_SIN6_SCOPE_ID 1 + /* ---------------------------------------------------------------- */ /* COMPILER SPECIFIC */ /* ---------------------------------------------------------------- */ -- cgit v1.2.1 From 1cc50d31f9962264fd78cdbe6a27dac10742dcd6 Mon Sep 17 00:00:00 2001 From: Gunter Knauf Date: Tue, 30 Dec 2008 08:05:38 +0000 Subject: changed HAVE_SIN6_SCOPE_ID define to HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID since just found that ares already uses this define. --- lib/config-win32ce.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 65b00a104..69caa4666 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -324,7 +324,7 @@ #define HAVE_STRUCT_TIMEVAL 1 /* Define this if struct sockaddr_in6 has the sin6_scope_id member */ -#define HAVE_SIN6_SCOPE_ID 1 +#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 /* ---------------------------------------------------------------- */ /* COMPILER SPECIFIC */ -- cgit v1.2.1 From 9cc6ab39220c60ee59eaae8b207216c0a319d384 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 14 Apr 2009 13:50:32 +0000 Subject: use HAVE_LIMITS_H symbol to protect limits.h inclusion --- lib/config-win32ce.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 69caa4666..57571b51f 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -30,6 +30,9 @@ /* Define if you have the header file. */ #define HAVE_IO_H 1 +/* Define if you have the header file. */ +#define HAVE_LIMITS_H 1 + /* Define if you need the malloc.h header header file even with stdlib.h */ #define NEED_MALLOC_H 1 -- cgit v1.2.1 From cef95aadebf0be4be6b4ed82e07f38cc83faf546 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 26 Feb 2010 18:32:46 +0000 Subject: Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems --- lib/config-win32ce.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 57571b51f..058fcc0f0 100644 --- a/lib/config-win32ce.h +++ b/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 */ /* ---------------------------------------------------------------- */ -- cgit v1.2.1 From 43d20d81a55a0e30becea04b7e607775093ce6eb Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 4 Jun 2010 15:14:31 +0200 Subject: Enable OpenLDAP support for cygwin builds. Enable OpenLDAP support for cygwin builds. This support was disabled back in 2008 due to incompatibilities between OpenSSL and OpenLDAP headers. cygwin's OpenSSL 0.9.8l and OpenLDAP 2.3.43 versions on cygwin 1.5.25 allow building an OpenLDAP enabled libcurl supporting back to Windows 95. Remove non-functional CURL_LDAP_HYBRID code and references. --- lib/config-win32ce.h | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 058fcc0f0..1f417825e 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -379,7 +379,6 @@ /* ---------------------------------------------------------------- */ #define CURL_LDAP_WIN 1 -#undef CURL_LDAP_HYBRID #undef HAVE_LDAP_URL_PARSE /* ---------------------------------------------------------------- */ -- cgit v1.2.1 From 99a07a1fdf2a4e0ee37e8c324fcb6d52222ebaff Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 2 Dec 2010 21:41:23 +0100 Subject: build: provide SIZEOF_SIZE_T definition for non-configure builds --- lib/config-win32ce.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 1f417825e..3a5913e99 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -322,6 +322,13 @@ /* The size of `short', as computed by sizeof. */ #define SIZEOF_SHORT 2 +/* The size of `size_t', as computed by sizeof. */ +#if defined(_WIN64) +# define SIZEOF_SIZE_T 8 +#else +# define SIZEOF_SIZE_T 4 +#endif + /* ---------------------------------------------------------------- */ /* STRUCT RELATED */ /* ---------------------------------------------------------------- */ -- cgit v1.2.1 From 1aeb635cdd296c16acb375a4a83a78f13166ccab Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 10 Mar 2011 11:48:02 +0100 Subject: sources: update source headers All C and H files now (should) feature the proper project curl source code header, which includes basic info, a copyright statement and some basic disclaimers. --- lib/config-win32ce.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 3a5913e99..872334286 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -1,5 +1,26 @@ #ifndef __LIB_CONFIG_WIN32CE_H #define __LIB_CONFIG_WIN32CE_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ /* ================================================================ */ /* lib/config-win32ce.h - Hand crafted config file for windows ce */ -- cgit v1.2.1 From ef2176109fca302ed89193716b62c3a7113552a3 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 24 Jul 2011 04:39:43 +0200 Subject: errno.h inclusion conditionally done in setup_once.h --- lib/config-win32ce.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 872334286..93e3b8999 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -39,6 +39,9 @@ /* Define if you have the header file. */ /* #define HAVE_CRYPTO_H 1 */ +/* Define if you have the header file. */ +#define HAVE_ERRNO_H 1 + /* Define if you have the header file. */ /* #define HAVE_ERR_H 1 */ -- cgit v1.2.1 From 0a26b0e3e7e5cb616a03dd428c24e660a60d57ce Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 25 Jul 2011 03:10:24 +0200 Subject: errno.h inclusion conditionally done in setup_once.h - followup --- lib/config-win32ce.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 93e3b8999..1ade83fbe 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -40,7 +40,7 @@ /* #define HAVE_CRYPTO_H 1 */ /* Define if you have the header file. */ -#define HAVE_ERRNO_H 1 +/* #define HAVE_ERRNO_H 1 */ /* Define if you have the header file. */ /* #define HAVE_ERR_H 1 */ -- cgit v1.2.1 From 99b13f27419c789ff81f348f569ceffb05422943 Mon Sep 17 00:00:00 2001 From: Mark Salisbury Date: Wed, 20 Jun 2012 00:49:49 +0200 Subject: config-win32ce.h: WinCE config adjustment process.h is not present on WinCE --- lib/config-win32ce.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 1ade83fbe..610cbb527 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -79,7 +79,7 @@ #define HAVE_STDLIB_H 1 /* Define if you have the header file. */ -#define HAVE_PROCESS_H 1 +/* #define HAVE_PROCESS_H 1 */ /* Define if you have the header file. */ /* #define HAVE_SYS_PARAM_H 1 */ -- cgit v1.2.1 From e77d8670685d38d80c940877a4fdfa3382c4d6cc Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 5 Jul 2012 22:16:15 +0200 Subject: unicode NTLM SSPI: cleanup Reduce the number of #ifdef UNICODE directives used in source files. --- lib/config-win32ce.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'lib/config-win32ce.h') diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 610cbb527..a8ab0d34e 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -1,5 +1,5 @@ -#ifndef __LIB_CONFIG_WIN32CE_H -#define __LIB_CONFIG_WIN32CE_H +#ifndef HEADER_CURL_CONFIG_WIN32CE_H +#define HEADER_CURL_CONFIG_WIN32CE_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | @@ -427,6 +427,14 @@ /* WinCE */ /* ---------------------------------------------------------------- */ +#ifndef UNICODE +# define UNICODE +#endif + +#ifndef _UNICODE +# define _UNICODE +#endif + #define CURL_DISABLE_FILE 1 #define CURL_DISABLE_TELNET 1 #define CURL_DISABLE_LDAP 1 @@ -437,4 +445,4 @@ extern int stat(const char *path,struct stat *buffer ); -#endif /* __LIB_CONFIG_WIN32CE_H */ +#endif /* HEADER_CURL_CONFIG_WIN32CE_H */ -- cgit v1.2.1