Commit 8052a637 authored by Jack Andersen's avatar Jack Andersen

Huge compile performance refactor

parent bd73c89b
......@@ -2,7 +2,7 @@
#define __KABU_UTIL_HPP__
#ifndef _WIN32
#include <stdlib.h>
#include <cstdlib>
#include <sys/stat.h>
#include <sys/file.h>
#include <sys/ioctl.h>
......@@ -10,7 +10,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <sys/statvfs.h>
#include <errno.h>
#include <cerrno>
#else
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
......@@ -19,19 +19,19 @@
#define NOMINMAX
#endif
#include <Windows.h>
#include <wchar.h>
#include <cwchar>
#include "winsupport.hpp"
#if UNICODE
#define CARD_UCS2 1
#endif
#endif
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <cstdarg>
#include <cstdint>
#include <cstdio>
#include <algorithm>
#include <string>
#include <string.h>
#include <cstring>
#include "WideStringConvert.hpp"
#undef bswap16
......
......@@ -97,8 +97,13 @@ enum {false, true};
typedef bool utf8proc_bool;
# endif
#else
#ifdef __cplusplus
# include <cstdbool>
# include <cinttypes>
#else
# include <stdbool.h>
# include <inttypes.h>
#endif
typedef int8_t utf8proc_int8_t;
typedef uint8_t utf8proc_uint8_t;
typedef int16_t utf8proc_int16_t;
......@@ -109,7 +114,11 @@ typedef size_t utf8proc_size_t;
typedef ssize_t utf8proc_ssize_t;
typedef bool utf8proc_bool;
#endif
#include <limits.h>
#ifdef __cplusplus
# include <climits>
#else
# include <limits.h>
#endif
/** @name Error codes
* Error codes being returned by almost all functions.
......
#include "kabufuda/Card.hpp"
#include "kabufuda/SRAM.hpp"
#include <stdio.h>
#include <string.h>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <memory>
......
#include "kabufuda/Util.hpp"
#include <time.h>
#include <ctime>
namespace kabufuda
{
......
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <cstdlib>
#include <cstdint>
#include <cstring>
#include <string>
#include "hecl/winsupport.hpp"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment