Added support for Salford-C under Win32 (scc). HAVE_MALLOC_H and
HAVE_PROCESS_H added for all except scc.
This commit is contained in:
@@ -37,7 +37,9 @@
|
|||||||
#define HAVE_IO_H 1
|
#define HAVE_IO_H 1
|
||||||
|
|
||||||
/* Define if you have the <malloc.h> header file. */
|
/* Define if you have the <malloc.h> header file. */
|
||||||
|
#ifndef __SALFORDC__
|
||||||
#define HAVE_MALLOC_H 1
|
#define HAVE_MALLOC_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define if you have the <netdb.h> header file. */
|
/* Define if you have the <netdb.h> header file. */
|
||||||
/* #define HAVE_NETDB_H 1 */
|
/* #define HAVE_NETDB_H 1 */
|
||||||
@@ -45,6 +47,11 @@
|
|||||||
/* Define if you have the <netinet/in.h> header file. */
|
/* Define if you have the <netinet/in.h> header file. */
|
||||||
/* #define HAVE_NETINET_IN_H 1 */
|
/* #define HAVE_NETINET_IN_H 1 */
|
||||||
|
|
||||||
|
/* Define if you have the <process.h> header file. */
|
||||||
|
#ifndef __SALFORDC__
|
||||||
|
#define HAVE_PROCESS_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define if you have the <sgtty.h> header file. */
|
/* Define if you have the <sgtty.h> header file. */
|
||||||
/* #define HAVE_SGTTY_H 1 */
|
/* #define HAVE_SGTTY_H 1 */
|
||||||
|
|
||||||
@@ -98,11 +105,13 @@
|
|||||||
/* Define if you have the <winsock.h> header file. */
|
/* Define if you have the <winsock.h> header file. */
|
||||||
#define HAVE_WINSOCK_H 1
|
#define HAVE_WINSOCK_H 1
|
||||||
|
|
||||||
|
#ifndef __SALFORDC__
|
||||||
/* Define if you have the <winsock2.h> header file. */
|
/* Define if you have the <winsock2.h> header file. */
|
||||||
#define HAVE_WINSOCK2_H 1
|
#define HAVE_WINSOCK2_H 1
|
||||||
|
|
||||||
/* Define if you have the <ws2tcpip.h> header file. */
|
/* Define if you have the <ws2tcpip.h> header file. */
|
||||||
#define HAVE_WS2TCPIP_H 1
|
#define HAVE_WS2TCPIP_H 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
/* OTHER HEADER INFO */
|
/* OTHER HEADER INFO */
|
||||||
@@ -246,8 +255,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define SIZEOF_CURL_OFF_T as computed by sizeof(curl_off_t) */
|
/* Define SIZEOF_CURL_OFF_T as computed by sizeof(curl_off_t) */
|
||||||
/* Borland/PellesC lacks _lseeki64(), so we don't support >2GB files. */
|
/* Borland/PellesC/SalfordC lacks _lseeki64(), so we don't support
|
||||||
#if defined(__BORLANDC__) || defined(__POCC__)
|
* >2GB files.
|
||||||
|
*/
|
||||||
|
#if defined(__BORLANDC__) || defined(__POCC__) || defined(__SALFORDC__)
|
||||||
#define SIZEOF_CURL_OFF_T 4
|
#define SIZEOF_CURL_OFF_T 4
|
||||||
#else
|
#else
|
||||||
#define SIZEOF_CURL_OFF_T 8
|
#define SIZEOF_CURL_OFF_T 8
|
||||||
@@ -258,7 +269,9 @@
|
|||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
|
|
||||||
/* Define this if you have struct sockaddr_storage */
|
/* Define this if you have struct sockaddr_storage */
|
||||||
|
#ifndef __SALFORDC__
|
||||||
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
|
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
/* COMPILER SPECIFIC */
|
/* COMPILER SPECIFIC */
|
||||||
|
|||||||
@@ -54,6 +54,9 @@
|
|||||||
/* Define if you have the <stdlib.h> header file. */
|
/* Define if you have the <stdlib.h> header file. */
|
||||||
#define HAVE_STDLIB_H 1
|
#define HAVE_STDLIB_H 1
|
||||||
|
|
||||||
|
/* Define if you have the <process.h> header file. */
|
||||||
|
#define HAVE_PROCESS_H 1
|
||||||
|
|
||||||
/* Define if you have the <sys/param.h> header file. */
|
/* Define if you have the <sys/param.h> header file. */
|
||||||
/* #define HAVE_SYS_PARAM_H 1 */
|
/* #define HAVE_SYS_PARAM_H 1 */
|
||||||
|
|
||||||
|
|||||||
11
lib/setup.h
11
lib/setup.h
@@ -173,6 +173,17 @@ typedef unsigned char bool;
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Salford-C cludge section (mostly borrowed from wxWidgets).
|
||||||
|
*/
|
||||||
|
#ifdef __SALFORDC__
|
||||||
|
#pragma suppress 353 /* Possible nested comments */
|
||||||
|
#pragma suppress 593 /* Define not used */
|
||||||
|
#pragma suppress 61 /* enum has no name */
|
||||||
|
#pragma suppress 106 /* unnamed, unused parameter */
|
||||||
|
#include <clib.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CURLDEBUG) && defined(HAVE_ASSERT_H)
|
#if defined(CURLDEBUG) && defined(HAVE_ASSERT_H)
|
||||||
#define curlassert(x) assert(x)
|
#define curlassert(x) assert(x)
|
||||||
#else
|
#else
|
||||||
|
|||||||
10
lib/share.h
10
lib/share.h
@@ -28,10 +28,18 @@
|
|||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#include "cookie.h"
|
#include "cookie.h"
|
||||||
|
|
||||||
|
/* SalfordC says "A structure member may not be volatile". Hence:
|
||||||
|
*/
|
||||||
|
#ifdef __SALFORDC__
|
||||||
|
#define CURL_VOLATILE
|
||||||
|
#else
|
||||||
|
#define CURL_VOLATILE volatile
|
||||||
|
#endif
|
||||||
|
|
||||||
/* this struct is libcurl-private, don't export details */
|
/* this struct is libcurl-private, don't export details */
|
||||||
struct Curl_share {
|
struct Curl_share {
|
||||||
unsigned int specifier;
|
unsigned int specifier;
|
||||||
volatile unsigned int dirty;
|
CURL_VOLATILE unsigned int dirty;
|
||||||
|
|
||||||
curl_lock_function lockfunc;
|
curl_lock_function lockfunc;
|
||||||
curl_unlock_function unlockfunc;
|
curl_unlock_function unlockfunc;
|
||||||
|
|||||||
Reference in New Issue
Block a user