Skip to content

Commit 25e4f4a

Browse files
committed
config.h cannot work after linux features.h
Bail if that's the case
1 parent b4afeac commit 25e4f4a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

platforms/unix/config/config.h.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
#ifndef __sq_config_h
3636
#define __sq_config_h
3737

38+
#ifdef _FEATURES_H
39+
#error This file was included too late. Please make sure it is included earlier
40+
#endif
41+
3842

3943
/* Define if building universal (internal helper macro) */
4044
#undef AC_APPLE_UNIVERSAL_BUILD

platforms/unix/config/configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,10 @@ AH_TOP([/* config.h.in -- template for config.h -*- C -*-
490490

491491
#ifndef __sq_config_h
492492
#define __sq_config_h
493+
494+
#ifdef _FEATURES_H
495+
#error This file was included too late. Please make sure it is included earlier
496+
#endif
493497
])
494498

495499
AH_TEMPLATE([VM_DLSYM_PREFIX],[Once used to specify mangled names on Mac OS, left for documentation purposes])

0 commit comments

Comments
 (0)