mirror of https://github.com/AxioDL/kabufuda.git
Huge compile performance refactor
This commit is contained in:
parent
bd73c89b54
commit
8052a6372e
|
@ -2,7 +2,7 @@
|
||||||
#define __KABU_UTIL_HPP__
|
#define __KABU_UTIL_HPP__
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/statvfs.h>
|
#include <sys/statvfs.h>
|
||||||
#include <errno.h>
|
#include <cerrno>
|
||||||
#else
|
#else
|
||||||
#ifndef WIN32_LEAN_AND_MEAN
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
#define WIN32_LEAN_AND_MEAN 1
|
#define WIN32_LEAN_AND_MEAN 1
|
||||||
|
@ -19,19 +19,19 @@
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
#endif
|
#endif
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <wchar.h>
|
#include <cwchar>
|
||||||
#include "winsupport.hpp"
|
#include "winsupport.hpp"
|
||||||
#if UNICODE
|
#if UNICODE
|
||||||
#define CARD_UCS2 1
|
#define CARD_UCS2 1
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <cstdarg>
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include "WideStringConvert.hpp"
|
#include "WideStringConvert.hpp"
|
||||||
|
|
||||||
#undef bswap16
|
#undef bswap16
|
||||||
|
|
|
@ -97,8 +97,13 @@ enum {false, true};
|
||||||
typedef bool utf8proc_bool;
|
typedef bool utf8proc_bool;
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
|
#ifdef __cplusplus
|
||||||
|
# include <cstdbool>
|
||||||
|
# include <cinttypes>
|
||||||
|
#else
|
||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
# include <inttypes.h>
|
# include <inttypes.h>
|
||||||
|
#endif
|
||||||
typedef int8_t utf8proc_int8_t;
|
typedef int8_t utf8proc_int8_t;
|
||||||
typedef uint8_t utf8proc_uint8_t;
|
typedef uint8_t utf8proc_uint8_t;
|
||||||
typedef int16_t utf8proc_int16_t;
|
typedef int16_t utf8proc_int16_t;
|
||||||
|
@ -109,7 +114,11 @@ typedef size_t utf8proc_size_t;
|
||||||
typedef ssize_t utf8proc_ssize_t;
|
typedef ssize_t utf8proc_ssize_t;
|
||||||
typedef bool utf8proc_bool;
|
typedef bool utf8proc_bool;
|
||||||
#endif
|
#endif
|
||||||
#include <limits.h>
|
#ifdef __cplusplus
|
||||||
|
# include <climits>
|
||||||
|
#else
|
||||||
|
# include <limits.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @name Error codes
|
/** @name Error codes
|
||||||
* Error codes being returned by almost all functions.
|
* Error codes being returned by almost all functions.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "kabufuda/Card.hpp"
|
#include "kabufuda/Card.hpp"
|
||||||
#include "kabufuda/SRAM.hpp"
|
#include "kabufuda/SRAM.hpp"
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "kabufuda/Util.hpp"
|
#include "kabufuda/Util.hpp"
|
||||||
#include <time.h>
|
#include <ctime>
|
||||||
|
|
||||||
namespace kabufuda
|
namespace kabufuda
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <stdlib.h>
|
#include <cstdlib>
|
||||||
#include <stdint.h>
|
#include <cstdint>
|
||||||
#include <string.h>
|
#include <cstring>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "hecl/winsupport.hpp"
|
#include "hecl/winsupport.hpp"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue