Provide prototypes to fix build with clang.
This commit is contained in:
parent
8fae4413f7
commit
67ec38504d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: atomic_c11_compare_exchange_cas_16.c,v 1.1 2014/10/12 17:51:47 martin Exp $ */
|
||||
/* $NetBSD: atomic_c11_compare_exchange_cas_16.c,v 1.2 2014/11/04 19:56:44 joerg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
@ -36,6 +36,9 @@
|
||||
#endif
|
||||
#include <sys/atomic.h>
|
||||
|
||||
bool __atomic_compare_exchange_2(volatile uint16_t *, uint16_t *, uint16_t,
|
||||
bool, int, int);
|
||||
|
||||
bool
|
||||
__atomic_compare_exchange_2(volatile uint16_t *mem,
|
||||
uint16_t *expected, uint16_t desired,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: atomic_c11_compare_exchange_cas_32.c,v 1.1 2014/10/12 17:51:47 martin Exp $ */
|
||||
/* $NetBSD: atomic_c11_compare_exchange_cas_32.c,v 1.2 2014/11/04 19:56:44 joerg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
@ -36,6 +36,9 @@
|
||||
#endif
|
||||
#include <sys/atomic.h>
|
||||
|
||||
bool __atomic_compare_exchange_4(volatile uint32_t *, uint32_t *, uint32_t,
|
||||
bool, int, int);
|
||||
|
||||
bool
|
||||
__atomic_compare_exchange_4(volatile uint32_t *mem,
|
||||
uint32_t *expected, uint32_t desired,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: atomic_c11_compare_exchange_cas_8.c,v 1.1 2014/10/12 17:51:47 martin Exp $ */
|
||||
/* $NetBSD: atomic_c11_compare_exchange_cas_8.c,v 1.2 2014/11/04 19:56:44 joerg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
@ -36,6 +36,9 @@
|
||||
#endif
|
||||
#include <sys/atomic.h>
|
||||
|
||||
bool __atomic_compare_exchange_1(volatile uint8_t *, uint8_t *, uint8_t,
|
||||
bool, int, int);
|
||||
|
||||
bool
|
||||
__atomic_compare_exchange_1(volatile uint8_t *mem,
|
||||
uint8_t *expected, uint8_t desired,
|
||||
|
Loading…
Reference in New Issue
Block a user