ObjFW  Check-in [a7c16ea8b3]

Overview
Comment:Prevent importing atomic.h without atomic ops.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: a7c16ea8b3c049f5f95932b1e3e711434bd0a353399ec448174ef104927a6f02
User & Date: js on 2013-01-15 02:06:57
Other Links: manifest | tags
Context
2013-01-15
02:11
OFThread: Fix compilation without atomic ops. check-in: d0eb2ddd31 user: js tags: trunk
02:06
Prevent importing atomic.h without atomic ops. check-in: a7c16ea8b3 user: js tags: trunk
01:49
runtime.h: Add extern "C". check-in: 94b66c350d user: js tags: trunk
Changes

Modified src/atomic.h from [368de22827] to [e354f89407].

9
10
11
12
13
14
15






16
17
18
19
20
21
22
 * the packaging of this file.
 *
 * Alternatively, it may be distributed under the terms of the GNU General
 * 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 <stdlib.h>

#import "macros.h"

#ifdef OF_HAVE_OSATOMIC
# include <libkern/OSAtomic.h>







>
>
>
>
>
>







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 * the packaging of this file.
 *
 * Alternatively, it may be distributed under the terms of the GNU General
 * 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.
 */

#import "objfw-defs.h"

#ifndef OF_HAVE_ATOMIC_OPS
# error No atomic operations available!
#endif

#include <stdlib.h>

#import "macros.h"

#ifdef OF_HAVE_OSATOMIC
# include <libkern/OSAtomic.h>