]> granicus.if.org Git - php/commitdiff
- fix build
authorPierre Joye <pajoye@php.net>
Sat, 23 Aug 2008 17:08:30 +0000 (17:08 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 23 Aug 2008 17:08:30 +0000 (17:08 +0000)
ext/standard/crypt_freesec.c
ext/standard/crypt_freesec.h

index b9c852016749ef7788da7732e10f908ef6188357..b408a85f314addddfe5acf9061a70b660d94064c 100644 (file)
 #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 '_'
index 0cbecacbdcab8099a57ba039192821c92aee3a5c..f7f499470ae6063aa8c7967d17a27f388f39ad5a 100644 (file)
@@ -2,14 +2,14 @@
 #ifndef _CRYPT_FREESEC_H
 #define _CRYPT_FREESEC_H
 
-#include "php_config.h"
 
 #if PHP_WIN32
 # include "win32/php_stdint.h"
-#elif HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#if !PHP_WIN32
+#else
+# include "php_config.h"
+# if HAVE_STDINT_H
+#  include <stdint.h>
+# endif
 # ifndef HAVE_U_INT32_T
    typedef uint32_t u_int32_t;
 # endif