Menu

#5 Cannot build on macOS 10.13

v1.0_(example)
open
nobody
None
5
2017-10-05
2017-10-05
FX
No

On macOS 10.13, the system headers already define u_int32_t, so compilation leads to the following error:

In file included from crc32.c:20:
./crc32.h:9:30: error: typedef redefinition with different types ('unsigned long' vs 'unsigned int')
   typedef unsigned long int u_int32_t;
                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/sys/_types/_u_int32_t.h:30:23: note: previous definition is here
typedef unsigned int            u_int32_t;
                                ^

Discussion


Log in to post a comment.