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/share.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/share.h') diff --git a/lib/share.h b/lib/share.h index 5f02f1aed..5cfe8c792 100644 --- a/lib/share.h +++ b/lib/share.h @@ -28,10 +28,18 @@ #include #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 */ struct Curl_share { unsigned int specifier; - volatile unsigned int dirty; + CURL_VOLATILE unsigned int dirty; curl_lock_function lockfunc; curl_unlock_function unlockfunc; -- cgit v1.2.3