mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-25 21:19:07 +00:00
backtrace: Do not attempt to compile if spice_backtrace is empty
In backtrace.h spice_backtrace is defined as: #if defined(WIN32) && !defined(__MINGW32__) #define spice_backtrace() #else .. so don't try to compile if an empty macro is used. Currently not causing any issue as we use MingW on Windows but does not hurt is code is more portable. Signed-off-by: Frediano Ziglio <freddy77@gmail.com> Acked-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
parent
8e0e13881e
commit
ca1016eb15
@ -23,6 +23,8 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#if !defined(WIN32) || defined(__MINGW32__)
|
||||
|
||||
#include "backtrace.h"
|
||||
|
||||
#include <errno.h>
|
||||
@ -130,3 +132,4 @@ void spice_backtrace(void)
|
||||
spice_backtrace_backtrace();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user