summaryrefslogtreecommitdiff
path: root/ext/standard/crypt_freesec.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-08-23 20:42:18 +0000
committerPierre Joye <pajoye@php.net>2008-08-23 20:42:18 +0000
commit37a37d8743c27d93408f9581180d2a9ec3c33b9f (patch)
treef2c0741c6cdb8e7aad826991530aab7a86473e88 /ext/standard/crypt_freesec.c
parent8b952208ecbf11aa007a59055ac9fb4da2540599 (diff)
downloadphp-git-37a37d8743c27d93408f9581180d2a9ec3c33b9f.tar.gz
- MFB: fix build (common inline definition will be done later)
Diffstat (limited to 'ext/standard/crypt_freesec.c')
-rw-r--r--ext/standard/crypt_freesec.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/standard/crypt_freesec.c b/ext/standard/crypt_freesec.c
index b9c8520167..b408a85f31 100644
--- a/ext/standard/crypt_freesec.c
+++ b/ext/standard/crypt_freesec.c
@@ -69,6 +69,20 @@
#include <stdio.h>
#endif
+
+#if defined(__GNUC__)
+# ifdef inline
+# undef inline
+# endif
+# define inline inline __attribute__((always_inline))
+#elif defined(_MSC_VER)
+# define inline __forceinline
+#else
+# ifndef inline
+# define inline
+# endif
+#endif
+
#include "crypt_freesec.h"
#define _PASSWORD_EFMT1 '_'