File tree 3 files changed +18
-2
lines changed
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ ifeq ($(tdd), yes)
52
52
libobjc_CPPFLAGS += -DTYPE_DEPENDENT_DISPATCH
53
53
endif
54
54
55
- libobjc_LIBRARIES_DEPEND_UPON += -lpthread
55
+ libobjc_LIBRARIES_DEPEND_UPON += -lpthread -ltoydispatch
56
56
57
57
# Deprecated functions are only deprecated for external use, not for us because
58
58
# we are special, precious, little flowers.
@@ -62,7 +62,7 @@ libobjc_CPPFLAGS += -D__OBJC_RUNTIME_INTERNAL__=1 -D_XOPEN_SOURCE=500
62
62
# benefit from supporting platforms with no C99 compiler.
63
63
libobjc_CFLAGS += -std=c99 -g -march=native -fexceptions -fno-inline
64
64
libobjc_OBJCFLAGS += $(libobjc_CFLAGS )
65
- libobjc_LDFLAGS += -g -ltoydispatch
65
+ libobjc_LDFLAGS += -g
66
66
libobjc_LIB_DIRS += -L toydispatch/obj
67
67
68
68
libobjc_CFLAGS += -O3
Original file line number Diff line number Diff line change @@ -14,10 +14,17 @@ void *objc_atomic_malloc(size_t size)
14
14
return malloc (size );
15
15
}
16
16
17
+ #ifdef __MINGW32__
18
+ void * objc_valloc (size_t size )
19
+ {
20
+ return malloc (size );
21
+ }
22
+ #else
17
23
void * objc_valloc (size_t size )
18
24
{
19
25
return valloc (size );
20
26
}
27
+ #endif
21
28
22
29
void * objc_realloc (void * mem , size_t size )
23
30
{
Original file line number Diff line number Diff line change 2
2
#include < stdio.h>
3
3
#include < unistd.h>
4
4
5
+ #ifdef __MINGW32__
6
+ #include < windows.h>
7
+ static unsigned sleep (unsigned seconds)
8
+ {
9
+ Sleep (seconds*1000 );
10
+ return 0 ;
11
+ }
12
+ #endif
13
+
5
14
// Subset of NSObject interface needed for properties.
6
15
@interface NSObject {}
7
16
- (id )retain ;
You can’t perform that action at this time.
0 commit comments