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:
parent
2d6ae9fd78
commit
1245101a5b
1 changed files with 4 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue