|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <ctype.h>
|
|
|
|
|
#include <math.h>
|
|
|
|
|
// work around https://reviews.llvm.org/D51265
|
|
|
|
|
#if defined(__APPLE__) || defined(__FreeBSD__)
|
|
|
|
|
#include "macos_stdarg.h"
|
|
|
|
|
#else
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
#endif
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
|
#define __int8 char
|
|
|
|
|
#define __int16 short
|
|
|
|
|
#define __int32 int
|
|
|
|
|
#define __int64 long long __attribute__((aligned(8)))
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "miniwin/misc.h"
|
|
|
|
|
#include "miniwin/com.h"
|
|
|
|
|
#include "miniwin/ui.h"
|
|
|
|
|
#include "miniwin/thread.h"
|
|
|
|
|
#include "miniwin/rand.h"
|
|
|
|
|
#include "storm_full.h"
|
|
|
|
|
|
|
|
|
|
#ifndef MAX_PATH
|
|
|
|
|
#define MAX_PATH DVL_MAX_PATH
|
|
|
|
|
#endif
|
|
|
|
|
#ifdef DEVILUTION_ENGINE
|
|
|
|
|
#include "miniwin/misc_macro.h"
|
|
|
|
|
#include "miniwin/com_macro.h"
|
|
|
|
|
#endif
|