diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-05 18:57:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-05 18:57:44 +0200 |
commit | eedc1dfc807ea884e33aa8c1e7eace803c2186cd (patch) | |
tree | 4ce93108c0b42beb627067c877909ceacaee321e | |
parent | bc0c5ab40b9a21b17db24c984302dccaccfa8322 (diff) |
Prevent assert() expansion during ODB compilation
-rw-r--r-- | bpkg/package | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bpkg/package b/bpkg/package index a17a860..4269605 100644 --- a/bpkg/package +++ b/bpkg/package @@ -71,6 +71,16 @@ namespace bpkg #include <bpkg/manifest> +// Prevent assert() macro expansion in get/set expressions. This should +// appear after all #include directives since the assert() macro is +// redefined in each <assert.h> inclusion. +// +#ifdef ODB_COMPILER +# undef assert +# define assert assert +void assert (int); +#endif + namespace bpkg { // version |