diff options
Diffstat (limited to 'src/sna/compiler.h')
-rw-r--r-- | src/sna/compiler.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sna/compiler.h b/src/sna/compiler.h index 0b113102..2c8b43da 100644 --- a/src/sna/compiler.h +++ b/src/sna/compiler.h @@ -40,4 +40,12 @@ #define fastcall #endif +#ifdef HAVE_VALGRIND_H +#define VG(x) x +#else +#define VG(x) +#endif + +#define VG_CLEAR(s) VG(memset(&s, 0, sizeof(s))) + #endif /* _SNA_COMPILER_H_ */ |