ObjFW  Check-in [083e05b444]

Overview
Comment:Fix MinGW32 build
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 083e05b4442cf026011fe65dd3990e63c6401562b8b70456ef0837798c12bfff
User & Date: js on 2014-07-19 16:16:32
Other Links: manifest | tags
Context
2014-07-19
16:27
OFThread: Configurable priority and stack size check-in: c4f724070a user: js tags: trunk
16:16
Fix MinGW32 build check-in: 083e05b444 user: js tags: trunk
16:16
Add of_thread_set_name() check-in: 2c78c6570b user: js tags: trunk
Changes

Modified configure.ac from [7a71a1c5d4] to [1edb9f33c8].

182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
	AC_DEFINE(OF_HAVE_PLUGINS, 1, [Whether we have plugin support])
])

AC_MSG_CHECKING(whether we need -D_GNU_SOURCE)
AC_EGREP_CPP(yes, [
	#include <stdlib.h>

	#ifdef __GLIBC__
	yes
	#endif
], [
	CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
	AC_MSG_RESULT(yes)
], [
	AC_MSG_RESULT(no)







|







182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
	AC_DEFINE(OF_HAVE_PLUGINS, 1, [Whether we have plugin support])
])

AC_MSG_CHECKING(whether we need -D_GNU_SOURCE)
AC_EGREP_CPP(yes, [
	#include <stdlib.h>

	#if defined(__GLIBC__) || defined(__MINGW32__)
	yes
	#endif
], [
	CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
	AC_MSG_RESULT(yes)
], [
	AC_MSG_RESULT(no)

Modified src/OFSettings_INIFile.m from [26bae693c9] to [faaf323fbb].

14
15
16
17
18
19
20

21
22
23
24
25
26
27
 * file.
 */

#include "config.h"

#import "OFSettings_INIFile.h"
#import "OFString.h"

#import "OFINIFile.h"
#import "OFSystemInfo.h"

@implementation OFSettings_INIFile
- initWithApplicationName: (OFString*)applicationName
{
	self = [super initWithApplicationName: applicationName];







>







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 * file.
 */

#include "config.h"

#import "OFSettings_INIFile.h"
#import "OFString.h"
#import "OFArray.h"
#import "OFINIFile.h"
#import "OFSystemInfo.h"

@implementation OFSettings_INIFile
- initWithApplicationName: (OFString*)applicationName
{
	self = [super initWithApplicationName: applicationName];

Modified src/OFStream.h from [10f43f7343] to [ef98567a77].

87
88
89
90
91
92
93
94


95
96
97
98
99
100
101
    OFCopying>
{
#ifndef OF_SEEKABLE_STREAM_M
@private
#endif
	char *_readBuffer, *_writeBuffer;
	size_t _readBufferLength, _writeBufferLength;
	bool _writeBufferEnabled, _blocking, _waitingForDelimiter;


}

#ifdef OF_HAVE_PROPERTIES
@property (getter=isWriteBufferEnabled) bool writeBufferEnabled;
@property (getter=isBlocking) bool blocking;
@property (readonly, getter=isAtEndOfStream) bool atEndOfStream;
#endif







|
>
>







87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
    OFCopying>
{
#ifndef OF_SEEKABLE_STREAM_M
@private
#endif
	char *_readBuffer, *_writeBuffer;
	size_t _readBufferLength, _writeBufferLength;
	bool _writeBufferEnabled, _waitingForDelimiter;
@protected
	bool _blocking;
}

#ifdef OF_HAVE_PROPERTIES
@property (getter=isWriteBufferEnabled) bool writeBufferEnabled;
@property (getter=isBlocking) bool blocking;
@property (readonly, getter=isAtEndOfStream) bool atEndOfStream;
#endif

Modified utils/OFZIP.m from [0b675f054e] to [996c3e9d72].

31
32
33
34
35
36
37







38
39
40
41
42
43
44
#import "OFInvalidFormatException.h"
#import "OFOpenFileFailedException.h"

#import "autorelease.h"
#import "macros.h"

#define BUFFER_SIZE 4096








@interface OFZIP: OFObject
{
	int_fast8_t _override, _outputLevel;
	int _exitStatus;
}








>
>
>
>
>
>
>







31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#import "OFInvalidFormatException.h"
#import "OFOpenFileFailedException.h"

#import "autorelease.h"
#import "macros.h"

#define BUFFER_SIZE 4096

#ifndef S_IRWXG
# define S_IRWXG 0
#endif
#ifndef S_IRWXO
# define S_IRWXO 0
#endif

@interface OFZIP: OFObject
{
	int_fast8_t _override, _outputLevel;
	int _exitStatus;
}