Windows SDK: define BEGIN_DECLS/END_DECLS.

These macros are not provided by MingW by default.

Change-Id: I623fda6c8e25e26573543c9368ebad47abc7f5c3
This commit is contained in:
Raphael Moll 2013-11-08 11:40:41 -08:00
parent a05365cece
commit b9c20aa8ba
1 changed files with 19 additions and 1 deletions

View File

@ -37,6 +37,24 @@
* comments.
*/
/* MingW doesn't define __BEGIN_DECLS / __END_DECLS. */
#ifndef __BEGIN_DECLS
# ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# else
# define __BEGIN_DECLS
# endif
#endif
#ifndef __END_DECLS
# ifdef __cplusplus
# define __END_DECLS }
# else
# define __END_DECLS
# endif
#endif
/*
* Threading model. Choose one:
*