diff options
Diffstat (limited to 'lib/warnless.h')
-rw-r--r-- | lib/warnless.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/warnless.h b/lib/warnless.h index ab6d29998..efd552a60 100644 --- a/lib/warnless.h +++ b/lib/warnless.h @@ -26,6 +26,11 @@ #include <curl/curl.h> /* for curl_socket_t */ #endif +#define CURLX_POINTER_TO_INTEGER_CAST(p) \ + ((char *)(p) - (char *)NULL) +#define CURLX_INTEGER_TO_POINTER_CAST(i) \ + ((void *)((char *)NULL + (i))) + unsigned short curlx_ultous(unsigned long ulnum); unsigned char curlx_ultouc(unsigned long ulnum); |