1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 19:14:46 +02:00

Windows...

This commit is contained in:
Bram Matthys
2016-04-03 20:13:58 +02:00
parent 89eaa72a8e
commit 2eda1cb285
+8
View File
@@ -220,4 +220,12 @@ typedef unsigned __int32 uint32_t;
#define __attribute__(x) /* nothing */
#endif
/* A normal abort() on windows causes the crucial stack frame to be missing
* from the stack trace, IOTW: you don't see where abort() was called!
* It's silly but this works:
*/
#ifdef _WIN32
#define abort(x) do { char *crash = NULL; *crash = 'x'; } while(0)
#endif
#endif /* __sys_include__ */