more stbool.h includes, MSVC has no unlink

This commit is contained in:
Enno Rehling 2017-01-10 18:20:47 +01:00 committed by Enno Rehling
parent 774fa12a5a
commit 7b25ed282d
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
#define H_ATTRIBUTE_KEY
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
#include <platform.h>
#include "renumber.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
#define H_KRNL_REPORTS
#include <platform.h>
#include <time.h>
#include <kernel/objtypes.h>
#include <kernel/types.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {

View File

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

View File

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