X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64dfdfa28bc46e8e84c5fb9e329a7ad7940b3f73..9d646d31c9976a59ab05f72671f217972b2d7770:/include/wx/mac/corefoundation/cfref.h diff --git a/include/wx/mac/corefoundation/cfref.h b/include/wx/mac/corefoundation/cfref.h index fb84f0fc5c..f5251ab1c0 100644 --- a/include/wx/mac/corefoundation/cfref.h +++ b/include/wx/mac/corefoundation/cfref.h @@ -17,14 +17,19 @@ #ifndef _WX_MAC_COREFOUNDATION_CFREF_H__ #define _WX_MAC_COREFOUNDATION_CFREF_H__ +// Include unistd to ensure that NULL is defined +#include +// Include AvailabilityMacros for DEPRECATED_ATTRIBUTE +#include + // #include /* Don't include CFBase.h such that this header can be included from public * headers with minimal namespace pollution. * Note that Darwin CF uses extern for CF_EXPORT. If we need this on Win32 * or non-Darwin Mac OS we'll need to define the appropriate __declspec. */ -extern "C" { typedef const void *CFTypeRef; +extern "C" { extern /* CF_EXPORT */ CFTypeRef CFRetain(CFTypeRef cf); extern /* CF_EXPORT */