We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb9b8fe + 61327b5 commit c3e6e3fCopy full SHA for c3e6e3f
src/tbprobe.c
@@ -39,10 +39,6 @@ SOFTWARE.
39
#endif
40
#include "tbprobe.h"
41
42
-#ifdef __cplusplus
43
-using namespace std;
44
-#endif
45
-
46
#define TB_PIECES 7
47
#define TB_HASHBITS (TB_PIECES < 7 ? 11 : 12)
48
#define TB_MAX_PIECE (TB_PIECES < 7 ? 254 : 650)
@@ -70,6 +66,13 @@ typedef size_t map_t;
70
66
typedef HANDLE map_t;
71
67
72
68
69
+// This must be after the inclusion of Windows headers, because otherwise
+// std::byte conflicts with "byte" in rpcndr.h . The error occurs if C++
+// standard is at lest 17, as std::byte was introduced in C++17.
+#ifdef __cplusplus
73
+using namespace std;
74
+#endif
75
+
76
#define DECOMP64
77
78
// Threading support
0 commit comments