Commit b3384af2 by Peter Pettersson

C90: add inline macro to xdiff and mbedtls

parent 61f1e31a
...@@ -23,12 +23,14 @@ ...@@ -23,12 +23,14 @@
#endif #endif
/* Work around C90-conformance issues */ /* Work around C90-conformance issues */
#if defined(_MSC_VER) #if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
# if defined(_MSC_VER)
# define inline __inline # define inline __inline
#elif defined(__GNUC__) # elif defined(__GNUC__)
# define inline __inline__ # define inline __inline__
#else # else
# define inline # define inline
# endif
#endif #endif
#include <mbedtls/config.h> #include <mbedtls/config.h>
......
...@@ -16,6 +16,17 @@ ...@@ -16,6 +16,17 @@
#include "regexp.h" #include "regexp.h"
/* Work around C90-conformance issues */
#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
# if defined(_MSC_VER)
# define inline __inline
# elif defined(__GNUC__)
# define inline __inline__
# else
# define inline
# endif
#endif
#define xdl_malloc(x) git__malloc(x) #define xdl_malloc(x) git__malloc(x)
#define xdl_free(ptr) git__free(ptr) #define xdl_free(ptr) git__free(ptr)
#define xdl_realloc(ptr, x) git__realloc(ptr, x) #define xdl_realloc(ptr, x) git__realloc(ptr, x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment