diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-23 17:23:22 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-23 17:23:22 +0200 |
commit | bdf73a67ffd964c37db5a9694424380bfd685c95 (patch) | |
tree | 3d313b318623eb7e7c46aed80c10e7fe896a5587 /src/main.cpp | |
parent | 2017-08-20 (diff) | |
download | AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.gz AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.bz2 AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.lz AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.xz AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.zst AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.zip |
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 2500fb2..0a6ad17 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,7 +15,13 @@ const char *getTimeSinceProgramStart(void) { INITIALIZE_EASYLOGGINGPP + +#ifdef WIN32 +int CALLBACK WinMain(_In_ HINSTANCE hInstance, _In_ HINSTANCE hPrevInstance, + _In_ LPSTR lpCmdLine, _In_ int nCmdShow) { +#else int main() { +#endif el::Configurations loggerConfiguration; el::Helpers::installCustomFormatSpecifier( el::CustomFormatSpecifier("%startTime", std::bind(getTimeSinceProgramStart))); |