From 1c26cc93f260bda9230a93e91585284e80aa231f Mon Sep 17 00:00:00 2001 From: Dmitry Ivankov Date: Sun, 19 Nov 2023 15:39:37 +0100 Subject: [PATCH] Fix compilation for newer compilers (C99 or newer) ``` cc -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -fblocks -c -o CoreSymbolication.o CoreSymbolication.c In file included from CoreSymbolication.c:1: ./CoreSymbolication.h:393:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] CSSymbolOwnerSetTransientUserData(CSSymbolOwnerRef owner, uint32_t gen); ^ int 1 error generated. ``` --- CoreSymbolication.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CoreSymbolication.h b/CoreSymbolication.h index a413860..263e0bc 100644 --- a/CoreSymbolication.h +++ b/CoreSymbolication.h @@ -390,7 +390,7 @@ CSSymbolOwnerSetLoadTimestamp CSSymbolOwnerSetPath CSSymbolOwnerSetRelocationCount */ -CSSymbolOwnerSetTransientUserData(CSSymbolOwnerRef owner, uint32_t gen); +int CSSymbolOwnerSetTransientUserData(CSSymbolOwnerRef owner, uint32_t gen); /* CSSymbolOwnerSetUnloadTimestamp */