This repository was archived by the owner on Apr 29, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ void *objc_atomic_malloc(size_t size)
1414 return malloc (size );
1515}
1616
17- #ifdef __MINGW32__
17+ #if defined( __MINGW32__ ) || defined( _WINDOWS )
1818void * objc_valloc (size_t size )
1919{
2020 return malloc (size );
Original file line number Diff line number Diff line change 11#include < stdio.h>
22#include < stdlib.h>
33#include " objc/runtime.h"
4+ #include " visibility.h"
45
56static void objc_enumeration_mutation_fallback (id object)
67{
@@ -13,7 +14,7 @@ static void objc_enumeration_mutation_fallback(id object)
1314// This function is exported as a weak symbol to enable GNUstep or some other
1415// framework to replace it trivially. On platforms with linkers that cannot handle weak exports,
1516// the objc_enumeration_mutation hook is the preferred override point.
16- void __attribute__ ((weak)) objc_enumerationMutation(id obj)
17+ void WEAK_EXPORT objc_enumerationMutation (id obj)
1718{
1819 _objc_enumeration_mutation (obj);
1920}
Original file line number Diff line number Diff line change @@ -127,7 +127,11 @@ typedef signed char BOOL;
127127# ifdef __vxwords
128128typedef int BOOL ;
129129# else
130+ # if defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
131+ typedef int BOOL ;
132+ # else
130133typedef unsigned char BOOL ;
134+ # endif
131135# endif
132136# endif
133137
Original file line number Diff line number Diff line change 1- #ifdef __MINGW32__
1+ #if defined( __MINGW32__ ) || defined( _WINDOWS )
22#include <windows.h>
33static unsigned sleep (unsigned seconds )
44{
Original file line number Diff line number Diff line change 2222
2323#define LIKELY (x ) __builtin_expect(x, 1)
2424#define UNLIKELY (x ) __builtin_expect(x, 0)
25+ #define WEAK_EXPORT __attribute__((weak))
You can’t perform that action at this time.
0 commit comments