diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-13 23:48:40 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-13 23:48:40 +0200 |
commit | 45122e72f2ea96bade6719b4ca3c6e8102573731 (patch) | |
tree | 22d32dc3de0bf6d21e12c28b0c833f5bb092e715 /lib/thread-optim.h | |
parent | 298293b2d060deaef96ac793a926ae8826d1f5e6 (diff) | |
download | gnulib-45122e72f2ea96bade6719b4ca3c6e8102573731.tar.gz |
Add more reminders to include <config.h>.
* lib/aligned-malloc.h: Check that config.h was already included.
* lib/careadlinkat.h: Likewise.
* lib/filemode.h: Likewise.
* lib/freadptr.h: Likewise.
* lib/fseterr.h: Likewise.
* lib/glthread/lock.h: Likewise.
* lib/glthread/tls.h: Likewise.
* lib/immutable.h: Likewise.
* lib/isapipe.h: Likewise.
* lib/isnand-nolibm.h: Likewise.
* lib/isnanf-nolibm.h: Likewise.
* lib/isnanl-nolibm.h: Likewise.
* lib/mbswidth.h: Likewise.
* lib/md5.h: Likewise.
* lib/minmax.h: Likewise.
* lib/msvc-inval.h: Likewise.
* lib/msvc-nothrow.h: Likewise.
* lib/pathmax.h: Likewise.
* lib/sha1.h: Likewise.
* lib/sha256.h: Likewise.
* lib/sha512.h: Likewise.
* lib/size_max.h: Likewise.
* lib/sm3.h: Likewise.
* lib/stat-size.h: Likewise.
* lib/termcap.h: Likewise.
* lib/terminfo.h: Likewise.
* lib/thread-optim.h: Likewise.
* lib/unlocked-io.h: Likewise.
* lib/vma-iter.h: Likewise.
Diffstat (limited to 'lib/thread-optim.h')
-rw-r--r-- | lib/thread-optim.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/thread-optim.h b/lib/thread-optim.h index 9a4c80af32..b5ef15aaf4 100644 --- a/lib/thread-optim.h +++ b/lib/thread-optim.h @@ -50,6 +50,11 @@ same optimization cannot be applied to locks that synchronize different processes (e.g. through shared memory mappings). */ +/* This file uses HAVE_SYS_SINGLE_THREADED_H. */ +#if !_GL_CONFIG_H_INCLUDED + #error "Please include config.h first." +#endif + #if HAVE_SYS_SINGLE_THREADED_H /* glibc >= 2.32 */ # include <sys/single_threaded.h> # define gl_multithreaded() (!__libc_single_threaded) |