Skip to content

Commit 786e118

Browse files
committed
Include mongoose_custom.h early to allow overrides
1 parent eca612d commit 786e118

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

mongoose.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ extern "C" {
6262
#endif
6363

6464
#if !defined(MG_ARCH)
65-
#error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..."
65+
#include <mongoose_custom.h>
6666
#endif
67-
#endif // !defined(MG_ARCH)
6867

69-
#if MG_ARCH == MG_ARCH_CUSTOM
70-
#include <mongoose_custom.h>
68+
#if !defined(MG_ARCH)
69+
#error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..."
7170
#endif
71+
#endif // !defined(MG_ARCH)
7272

7373

7474

src/arch.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
#endif
3636

3737
#if !defined(MG_ARCH)
38-
#error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..."
38+
#include <mongoose_custom.h>
3939
#endif
40-
#endif // !defined(MG_ARCH)
4140

42-
#if MG_ARCH == MG_ARCH_CUSTOM
43-
#include <mongoose_custom.h>
41+
#if !defined(MG_ARCH)
42+
#error "MG_ARCH is not specified and we couldn't guess it. Set -D MG_ARCH=..."
4443
#endif
44+
#endif // !defined(MG_ARCH)
4545

4646
#include "arch_esp32.h"
4747
#include "arch_esp8266.h"

0 commit comments

Comments
 (0)