diff options
-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 |