We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dd0575 commit 983c94eCopy full SHA for 983c94e
ext/hash/php_hash_sha.h
@@ -45,7 +45,7 @@ typedef struct {
45
PHP_HASH_API void PHP_SHA256InitArgs(PHP_SHA256_CTX *, ZEND_ATTRIBUTE_UNUSED HashTable *);
46
PHP_HASH_API void PHP_SHA256Update(PHP_SHA256_CTX *, const unsigned char *, size_t);
47
48
-#ifdef _MSC_VER
+#if defined(__cplusplus) || defined(_MSC_VER)
49
# define PHP_STATIC_RESTRICT
50
#else
51
# define PHP_STATIC_RESTRICT static restrict
0 commit comments