Skip to content

Commit

Permalink
test stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
theiostream committed Jun 27, 2017
1 parent 2b43e90 commit 98d799a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Headers/CoreFoundation/CFString.h
Expand Up @@ -104,7 +104,9 @@ enum CFStringBuiltInEncodings
called as few times as possible. */
CF_EXPORT CFStringRef
__CFStringMakeConstantString (const char *str) GS_PURE_FUNCTION;
#define CFSTR(x) __CFStringMakeConstantString("" x "")

#define CFSTR(cStr) ((CFStringRef) __builtin___CFStringMakeConstantString ("" cStr ""))
//#define CFSTR(x) __CFStringMakeConstantString("" x "")

/** \name Creating a CFString
\{
Expand Down
8 changes: 8 additions & 0 deletions Source/CFRuntime.c
Expand Up @@ -518,6 +518,14 @@ CFInitialize (void)
CFRunLoopInitialize ();
}

#if __LP64__
int __CFConstantStringClassReference[24] = { 0 };
#else
int __CFConstantStringClassReference[12] = { 0 };
#endif

void *__CFConstantStringClassReferencePtr = NULL;

#if defined(_MSC_VER)
#include <windows.h>

Expand Down

0 comments on commit 98d799a

Please sign in to comment.