Huge compile performance refactor

This commit is contained in:
Jack Andersen 2017-12-28 22:07:49 -10:00
parent bd73c89b54
commit 8052a6372e
5 changed files with 23 additions and 14 deletions

View File

@ -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

View File

@ -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
#ifdef __cplusplus
# include <climits>
#else
# include <limits.h>
#endif
/** @name Error codes
* Error codes being returned by almost all functions.

View File

@ -1,7 +1,7 @@
#include "kabufuda/Card.hpp"
#include "kabufuda/SRAM.hpp"
#include <stdio.h>
#include <string.h>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <memory>

View File

@ -1,5 +1,5 @@
#include "kabufuda/Util.hpp"
#include <time.h>
#include <ctime>
namespace kabufuda
{

View File

@ -1,6 +1,6 @@
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <cstdlib>
#include <cstdint>
#include <cstring>
#include <string>
#include "hecl/winsupport.hpp"