summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src/c++17/default_resource.h
blob: 522cee13b90eb92d68ab345d556d111ccc6926a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// This is only in a header so we can use the system_header pragma,
// to suppress the warning caused by using a reserved init_priority.
#pragma GCC system_header

#if ATOMIC_POINTER_LOCK_FREE == 2 || defined(__GTHREAD_MUTEX_INIT)
# error "This file should not be included for this build"
#endif

struct {
  atomic_mem_res obj = &newdel_res.obj;
} default_res __attribute__ ((init_priority (100)));