Commit 0f9b6742 by Edward Thomson

win32: add c linkage guard around inttypes.h inclusion

parent 855f048a
...@@ -10,12 +10,6 @@ ...@@ -10,12 +10,6 @@
#include <time.h> #include <time.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef _MSC_VER
# include "inttypes.h"
#else
# include <inttypes.h>
#endif
#ifdef __cplusplus #ifdef __cplusplus
# define GIT_BEGIN_DECL extern "C" { # define GIT_BEGIN_DECL extern "C" {
# define GIT_END_DECL } # define GIT_END_DECL }
...@@ -26,6 +20,14 @@ ...@@ -26,6 +20,14 @@
# define GIT_END_DECL /* empty */ # define GIT_END_DECL /* empty */
#endif #endif
#ifdef _MSC_VER
GIT_BEGIN_DECL
# include "inttypes.h"
GIT_END_DECL
#else
# include <inttypes.h>
#endif
/** Declare a public function exported for application use. */ /** Declare a public function exported for application use. */
#if __GNUC__ >= 4 #if __GNUC__ >= 4
# define GIT_EXTERN(type) extern \ # define GIT_EXTERN(type) extern \
......
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