Skip to content

Commit da1ab91

Browse files
authored
Merge pull request #19 from Cyberax/master
Work around broken __has_include
2 parents d590a68 + ca00c69 commit da1ab91

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/BER.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,32 @@
77
#ifdef __has_include
88
#if __has_include("SNMPcfg.h")
99
#include "SNMPcfg.h"
10-
#else
10+
#endif
11+
#endif
12+
1113
/**
1214
* @def SNMP_STREAM
1315
* @brief Defines read and write operations.
1416
*/
17+
#ifndef SNMP_STREAM
1518
#define SNMP_STREAM 1
19+
#endif
1620

1721
/**
1822
* @def SNMP_VECTOR
1923
* @brief Defines storage for ArrayBER.
2024
*/
25+
#ifndef SNMP_VECTOR
2126
#define SNMP_VECTOR 0
27+
#endif
2228

2329
/**
2430
* @def SNMP_CAPACITY
2531
* @brief Defines capacity of SequenceBER.
2632
*/
33+
#ifndef SNMP_CAPACITY
2734
#define SNMP_CAPACITY 6
2835
#endif
29-
#endif
3036

3137
#if SNMP_STREAM
3238
#include <Stream.h>

0 commit comments

Comments
 (0)