mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
Ricardo Cadime helped us work out another check for the ## preprocessor
directive.
This commit is contained in:
parent
ddeb2613ec
commit
b36c654a3d
@ -233,7 +233,15 @@ typedef enum {
|
|||||||
#ifdef CINIT
|
#ifdef CINIT
|
||||||
#undef CINIT
|
#undef CINIT
|
||||||
#endif
|
#endif
|
||||||
#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
|
/*
|
||||||
|
* Figure out if we can use the ## operator, which is supported by ISO/ANSI C
|
||||||
|
* and C++. Some compilers support it without setting __STDC__ or __cplusplus
|
||||||
|
* so we need to carefully check for them too. We don't use configure-checks
|
||||||
|
* for these since we want these headers to remain generic and working for all
|
||||||
|
* platforms.
|
||||||
|
*/
|
||||||
|
#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \
|
||||||
|
defined(__HP_aCC)
|
||||||
#define CINIT(name,type,number) CURLOPT_ ## name = CURLOPTTYPE_ ## type + number
|
#define CINIT(name,type,number) CURLOPT_ ## name = CURLOPTTYPE_ ## type + number
|
||||||
#else
|
#else
|
||||||
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
|
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
|
||||||
|
Loading…
Reference in New Issue
Block a user