mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 08:11:58 +00:00
win32: add c linkage guard around inttypes.h inclusion
This commit is contained in:
parent
855f048a7b
commit
0f9b6742ad
@ -10,12 +10,6 @@
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# include "inttypes.h"
|
||||
#else
|
||||
# include <inttypes.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
# define GIT_BEGIN_DECL extern "C" {
|
||||
# define GIT_END_DECL }
|
||||
@ -26,6 +20,14 @@
|
||||
# define GIT_END_DECL /* empty */
|
||||
#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. */
|
||||
#if __GNUC__ >= 4
|
||||
# define GIT_EXTERN(type) extern \
|
||||
|
Loading…
Reference in New Issue
Block a user