summaryrefslogtreecommitdiffstats
path: root/crypto/stack
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-06-08 00:26:16 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-06-08 00:26:16 +0000
commit54b5fd537f7a7ac1874359fd42a4721b6839f7a1 (patch)
tree28839ccc94d178c059a6b7620e2926878bdfea98 /crypto/stack
parent0b99d4f1d1ad1f57b2a2eaf0548823802a8f7330 (diff)
WIN32 fixes.
Diffstat (limited to 'crypto/stack')
-rw-r--r--crypto/stack/safestack.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/crypto/stack/safestack.h b/crypto/stack/safestack.h
index 5da6d9a16f..53c1695f2a 100644
--- a/crypto/stack/safestack.h
+++ b/crypto/stack/safestack.h
@@ -57,10 +57,14 @@
#include <openssl/stack.h>
-#ifdef OPENSSL_NO_FCAST
+#ifndef OPENSSL_ALLOW_FCAST
#ifndef OPENSSL_INLINE
-#define OPENSSL_INLINE static inline
+#ifdef OPENSSL_SYSNAME_WIN32
+#define OPENSSL_INLINE __inline static
+#else
+#define OPENSSL_INLINE inline static
+#endif
#endif
#define STACK_OF(type) struct stack_st_##type
@@ -74,7 +78,7 @@ STACK_OF(type) \
}; \
OPENSSL_INLINE STACK_OF(type) *sk_##type##_new( \
int (*cmp)(const type * const *, const type *const *)) \
- { return (STACK_OF(type) *)sk_new((int (*)())cmp); } \
+ { return (STACK_OF(type) *)sk_new((int (*)(const char * const *, const char * const *))cmp); } \
OPENSSL_INLINE STACK_OF(type) *sk_##type##_new_null() \
{ return (STACK_OF(type) *)sk_new_null(); } \
OPENSSL_INLINE void sk_##type##_free(STACK_OF(type) *sk) \