refactor: move SYS_MAIN definition to dwarfs/types.h

This commit is contained in:
Marcus Holland-Moritz 2024-05-04 17:56:42 +02:00
parent 5b72e103ac
commit f9f95bcf41
2 changed files with 2 additions and 6 deletions

View File

@ -30,9 +30,11 @@ namespace dwarfs {
using file_off_t = int64_t;
#ifdef _WIN32
#define SYS_MAIN wmain
using sys_char = wchar_t;
using sys_string = std::wstring;
#else
#define SYS_MAIN main
using sys_char = char;
using sys_string = std::string;
#endif

View File

@ -28,12 +28,6 @@
#include "dwarfs/types.h"
#ifdef _WIN32
#define SYS_MAIN wmain
#else
#define SYS_MAIN main
#endif
namespace dwarfs {
struct iolayer;