diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-03-25 22:47:50 +0000 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:54:40 +0000 |
commit | a065d4623e0f3dc507125aea688b120b02ed4e1b (patch) | |
tree | 1fe500ada484ea7e16927859da69ebb04d55ad53 /src/os | |
parent | 7c81f8e0764db47d09581a232a501a95825a138f (diff) | |
download | openttd-a065d4623e0f3dc507125aea688b120b02ed4e1b.tar.xz |
Codechange: Move 2 constants into the ifdef where they're used
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/windows/crashlog_win.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os/windows/crashlog_win.cpp b/src/os/windows/crashlog_win.cpp index 6bcaed837..458a76163 100644 --- a/src/os/windows/crashlog_win.cpp +++ b/src/os/windows/crashlog_win.cpp @@ -26,9 +26,6 @@ #include "../../safeguards.h" -static const uint MAX_SYMBOL_LEN = 512; -static const uint MAX_FRAMES = 64; - /* printf format specification for 32/64-bit addresses. */ #ifdef _M_AMD64 #define PRINTF_PTR "0x%016IX" @@ -322,6 +319,9 @@ static char *PrintModuleInfo(char *output, const char *last, HMODULE mod) } #if defined(_MSC_VER) +static const uint MAX_SYMBOL_LEN = 512; +static const uint MAX_FRAMES = 64; + #pragma warning(disable:4091) #include <dbghelp.h> #pragma warning(default:4091) |