ObjFW  Check-in [430d54e2a9]

Overview
Comment:Wrap _XOPEN_SOURCE_EXTENDED define in #ifndef
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 430d54e2a9f0c628891883326076ea980d4b0aa131f7bf3937a95cc475ff10b2
User & Date: js on 2021-01-13 23:01:46
Other Links: manifest | tags
Context
2021-01-13
23:08
Pass NULL if pthread attributes are not available check-in: 0b6bf65d2e user: js tags: trunk
23:01
Wrap _XOPEN_SOURCE_EXTENDED define in #ifndef check-in: 430d54e2a9 user: js tags: trunk
19:16
Define _XOPEN_SOURCE_EXTENDED where necessary check-in: d55b73f38e user: js tags: trunk
Changes

Modified src/OFDatagramSocket.m from [8dff090671] to [4b050b9816].

11
12
13
14
15
16
17

18

19
20
21
22
23
24
25
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"


#define _XOPEN_SOURCE_EXTENDED


#include <errno.h>

#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif








>
|
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#ifndef _XOPEN_SOURCE_EXTENDED
# define _XOPEN_SOURCE_EXTENDED
#endif

#include <errno.h>

#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif

Modified src/OFSequencedPacketSocket.m from [2bdd509c56] to [6704d2c5d3].

11
12
13
14
15
16
17

18

19
20
21
22
23
24
25
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"


#define _XOPEN_SOURCE_EXTENDED


#include <assert.h>
#include <errno.h>

#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif







>
|
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#ifndef _XOPEN_SOURCE_EXTENDED
# define _XOPEN_SOURCE_EXTENDED
#endif

#include <assert.h>
#include <errno.h>

#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif

Modified src/OFStreamSocket.m from [66cf0a873d] to [731a6e9d3a].

11
12
13
14
15
16
17

18

19
20
21
22
23
24
25
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"


#define _XOPEN_SOURCE_EXTENDED

#define __NO_EXT_QNX

#include <assert.h>
#include <errno.h>
#include <string.h>

#import "OFStreamSocket.h"







>
|
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#ifndef _XOPEN_SOURCE_EXTENDED
# define _XOPEN_SOURCE_EXTENDED
#endif
#define __NO_EXT_QNX

#include <assert.h>
#include <errno.h>
#include <string.h>

#import "OFStreamSocket.h"

Modified src/OFTCPSocket.m from [6b56ccc343] to [7803db3fba].

11
12
13
14
15
16
17

18

19
20
21
22
23
24
25
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"


#define _XOPEN_SOURCE_EXTENDED

#define __NO_EXT_QNX

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>








>
|
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#ifndef _XOPEN_SOURCE_EXTENDED
# define _XOPEN_SOURCE_EXTENDED
#endif
#define __NO_EXT_QNX

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Modified src/socket.m from [67f21d5ed8] to [12ec02f9d9].

11
12
13
14
15
16
17

18

19
20
21
22
23
24
25
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"


#define _XOPEN_SOURCE_EXTENDED


#ifdef OF_NINTENDO_3DS
# include <malloc.h>  /* For memalign() */
#endif

#include <errno.h>








>
|
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 * Public License, either version 2 or 3, which can be found in the file
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#ifndef _XOPEN_SOURCE_EXTENDED
# define _XOPEN_SOURCE_EXTENDED
#endif

#ifdef OF_NINTENDO_3DS
# include <malloc.h>  /* For memalign() */
#endif

#include <errno.h>