Skip to content

Commit b30ab9f

Browse files
committed
Updating macro
1 parent 1e666da commit b30ab9f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

include/turbopacking32.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
#define INCLUDE_TURBOPACKING32_H
44
#include <iso646.h> // mostly for Microsoft compilers
55
#include <stdint.h> // part of Visual Studio 2010 and better
6+
#ifndef UINT64_C
7+
#define UINT64_C(c) (c ## ULL)
8+
#endif
69

710
/** turbopacking32 starts here **/
811
/**

scripts/turbopacking32.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ def howmanybytes(bit):
1919
#include <iso646.h> // mostly for Microsoft compilers
2020
#include <stdint.h> // part of Visual Studio 2010 and better
2121
""")
22-
22+
print("""
23+
#ifndef UINT64_C
24+
#define UINT64_C(c) (c ## ULL)
25+
#endif
26+
""")
2327
print("""
2428
/** turbopacking32 starts here **/
2529
/**

0 commit comments

Comments
 (0)