more stbool.h includes, MSVC has no unlink

This commit is contained in:
Enno Rehling 2017-01-10 18:20:47 +01:00
parent 881dd9886f
commit ba2f35e44f
11 changed files with 25 additions and 2 deletions

View File

@ -18,6 +18,9 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifndef H_ATTRIBUTE_KEY #ifndef H_ATTRIBUTE_KEY
#define H_ATTRIBUTE_KEY #define H_ATTRIBUTE_KEY
#include <stdbool.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -1,3 +1,4 @@
#include <platform.h>
#include "donations.h" #include "donations.h"
#include <kernel/faction.h> #include <kernel/faction.h>

View File

@ -12,6 +12,9 @@
*/ */
#ifndef H_GC_GIVE #ifndef H_GC_GIVE
#define H_GC_GIVE #define H_GC_GIVE
#include <stdbool.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -10,7 +10,9 @@
without prior permission by the authors of Eressea. without prior permission by the authors of Eressea.
*/ */
#include <platform.h>
#include "command.h" #include "command.h"
#include "unit.h" #include "unit.h"
#include "order.h" #include "order.h"

View File

@ -12,6 +12,9 @@ without prior permission by the authors of Eressea.
*/ */
#ifndef H_GC_MARKET #ifndef H_GC_MARKET
#define H_GC_MARKET #define H_GC_MARKET
#include <stdbool.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -18,6 +18,9 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifndef H_GC_MONSTER #ifndef H_GC_MONSTER
#define H_GC_MONSTER #define H_GC_MONSTER
#include <stdbool.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -9,7 +9,7 @@
#endif #endif
#define NO_STRDUP #define NO_STRDUP
#define NO_MKDIR #define NO_MKDIR
#define mkdir(d, a) _mkdir(d) #define NO_UNLINK
#define _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable: 4710 4820) #pragma warning(disable: 4710 4820)
#pragma warning(disable: 4100) // unreferenced formal parameter #pragma warning(disable: 4100) // unreferenced formal parameter
@ -38,4 +38,7 @@ char * strdup(const char *s);
int mkdir(const char *pathname, int mode); int mkdir(const char *pathname, int mode);
#endif #endif
#ifdef NO_UNLINK
int unlink(const char *pathname);
#endif
#endif #endif

View File

@ -1,3 +1,4 @@
#include <platform.h>
#include "renumber.h" #include "renumber.h"
#include <tests.h> #include <tests.h>

View File

@ -20,10 +20,10 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifndef H_KRNL_REPORTS #ifndef H_KRNL_REPORTS
#define H_KRNL_REPORTS #define H_KRNL_REPORTS
#include <platform.h>
#include <time.h> #include <time.h>
#include <kernel/objtypes.h> #include <kernel/objtypes.h>
#include <kernel/types.h> #include <kernel/types.h>
#include <stdbool.h>
struct stream; struct stream;
struct seen_region; struct seen_region;

View File

@ -11,6 +11,8 @@
#ifndef H_GC_SUMMARY #ifndef H_GC_SUMMARY
#define H_GC_SUMMARY #define H_GC_SUMMARY
#include <stdbool.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@ -13,6 +13,8 @@
#ifndef H_UTIL_XML #ifndef H_UTIL_XML
#define H_UTIL_XML #define H_UTIL_XML
#include <stdbool.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif