0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd: Undef legacy major/minor macros if included through sys/types.h.

This commit is contained in:
Jason Volk 2019-12-31 13:41:45 -08:00
parent 2d6ae9fd78
commit 1245101a5b

View file

@ -105,6 +105,10 @@ extern "C"
#undef stdout #undef stdout
#undef stderr #undef stderr
// Historical macros from types.h
#undef major
#undef minor
// Trouble. clang++-8 // Trouble. clang++-8
#ifndef assert #ifndef assert
#define assert(expr) (static_cast<void>(0)) #define assert(expr) (static_cast<void>(0))