summaryrefslogtreecommitdiff
path: root/lib/share.h
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-04-26 17:11:05 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-04-26 17:11:05 +0000
commit414c57d138b9fe21eeecde730d9369eaedbdbc89 (patch)
tree7e800fe502ebf2154c29f03bceb141fa0b39bc5b /lib/share.h
parentc14a84e6f29efe248e59b6910924a35bcbc74384 (diff)
downloadcurl-414c57d138b9fe21eeecde730d9369eaedbdbc89.tar.gz
Added support for Salford-C under Win32 (scc). HAVE_MALLOC_H and
HAVE_PROCESS_H added for all except scc.
Diffstat (limited to 'lib/share.h')
-rw-r--r--lib/share.h10
1 files changed, 9 insertions, 1 deletions
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 <curl/curl.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 */
struct Curl_share {
unsigned int specifier;
- volatile unsigned int dirty;
+ CURL_VOLATILE unsigned int dirty;
curl_lock_function lockfunc;
curl_unlock_function unlockfunc;