diff options
Diffstat (limited to 'src/compat.h')
| -rw-r--r-- | src/compat.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/compat.h b/src/compat.h index e3f76a1..68f78e0 100644 --- a/src/compat.h +++ b/src/compat.h | |||
| @@ -175,19 +175,7 @@ inline void SetThreadPriority(void*, int) {} | |||
| 175 | #define THREAD_PRIORITY_NORMAL 0 | 175 | #define THREAD_PRIORITY_NORMAL 0 |
| 176 | #endif | 176 | #endif |
| 177 | 177 | ||
| 178 | // ---- wxWidgets shims (the headless build has no GUI; the few core call sites | 178 | // wx is always available (wx/wx.h included via headers.h); no shims needed. |
| 179 | // degrade to console/no-op) ---- | ||
| 180 | #define wxTheApp ((void*)0) | ||
| 181 | #ifndef wxOK | ||
| 182 | #define wxOK 0 | ||
| 183 | #define wxICON_ERROR 0 | ||
| 184 | #define wxICON_EXCLAMATION 0 | ||
| 185 | #define wxICON_INFORMATION 0 | ||
| 186 | #endif | ||
| 187 | inline void wxMessageBox(const std::string& msg, const std::string& caption = "", long = 0) | ||
| 188 | { | ||
| 189 | fprintf(stderr, "%s%s%s\n", caption.c_str(), caption.empty() ? "" : ": ", msg.c_str()); | ||
| 190 | } | ||
| 191 | 179 | ||
| 192 | #endif // !_WIN32 | 180 | #endif // !_WIN32 |
| 193 | #endif // BITFLASH_COMPAT_H | 181 | #endif // BITFLASH_COMPAT_H |