aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-04-22 16:42:41 -0400
committerDavid Robillard <d@drobilla.net>2022-04-23 21:18:56 -0400
commitadc8d07a210adcea86024121b53f28170141dae4 (patch)
tree32e7ac406504eea060456261bad8223cc7c706e2 /src
parentc7c45e1b7b32cb8a9cab173138e9ab7dedff2b12 (diff)
downloadpugl-adc8d07a210adcea86024121b53f28170141dae4.tar.gz
pugl-adc8d07a210adcea86024121b53f28170141dae4.tar.bz2
pugl-adc8d07a210adcea86024121b53f28170141dae4.zip
Move reserved platform defines from code to build system
Numerous things warn about this, and it's generally a bad idea to put these in the code since it can result in incompatibly compiled code being linked together. Unfortunately this makes building manually (without the build system) more fiddly, but such is life.
Diffstat (limited to 'src')
-rw-r--r--src/.clang-tidy4
-rw-r--r--src/x11.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/.clang-tidy b/src/.clang-tidy
index 29f7e2e..981e098 100644
--- a/src/.clang-tidy
+++ b/src/.clang-tidy
@@ -4,10 +4,6 @@ Checks: >
-*magic-numbers,
-altera*,
-bugprone-easily-swappable-parameters,
- -bugprone-reserved-identifier,
- -cert-dcl37-c,
- -cert-dcl51-cpp,
- -cert-flp30-c,
-hicpp-multiway-paths-covered,
-hicpp-signed-bitwise,
-llvm-header-guard,
diff --git a/src/x11.c b/src/x11.c
index 8a072be..039c411 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -3,10 +3,6 @@
// Copyright 2011-2012 Ben Loftis, Harrison Consoles
// SPDX-License-Identifier: ISC
-#ifndef _POSIX_C_SOURCE
-# define _POSIX_C_SOURCE 199309L
-#endif
-
#include "x11.h"
#include "attributes.h"