forked from github/server
more stbool.h includes, MSVC has no unlink
This commit is contained in:
parent
881dd9886f
commit
ba2f35e44f
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include <platform.h>
|
||||
#include "donations.h"
|
||||
|
||||
#include <kernel/faction.h>
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
*/
|
||||
#ifndef H_GC_GIVE
|
||||
#define H_GC_GIVE
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -10,7 +10,9 @@
|
|||
without prior permission by the authors of Eressea.
|
||||
|
||||
*/
|
||||
#include <platform.h>
|
||||
#include "command.h"
|
||||
|
||||
#include "unit.h"
|
||||
#include "order.h"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -9,7 +9,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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include <platform.h>
|
||||
#include "renumber.h"
|
||||
|
||||
#include <tests.h>
|
||||
|
|
|
@ -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>
|
||||
|
||||
struct stream;
|
||||
struct seen_region;
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
#ifndef H_GC_SUMMARY
|
||||
#define H_GC_SUMMARY
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
#ifndef H_UTIL_XML
|
||||
#define H_UTIL_XML
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue