diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-30 13:36:18 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-30 13:36:18 +0100 |
commit | 57f4e225d10c73bbefa276f01d37b13c4138e245 (patch) | |
tree | 0d357140507e311c63b7dae8ce62864a6629b3e7 /lib | |
parent | Reformat with new clang-format 16 (diff) | |
download | ilt-57f4e225d10c73bbefa276f01d37b13c4138e245.tar.bz2 ilt-57f4e225d10c73bbefa276f01d37b13c4138e245.tar.xz ilt-57f4e225d10c73bbefa276f01d37b13c4138e245.zip |
Rename strings.h to something that won't conflict with a system header
Diffstat (limited to 'lib')
-rw-r--r-- | lib/embed-glsl.cpp.m4 | 2 | ||||
-rw-r--r-- | lib/strlen.h (renamed from lib/strings.h) | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/embed-glsl.cpp.m4 b/lib/embed-glsl.cpp.m4 index 3503f75..8407132 100644 --- a/lib/embed-glsl.cpp.m4 +++ b/lib/embed-glsl.cpp.m4 @@ -3,7 +3,7 @@ changecom()dnl #include "substr(TYPE,1)-NAME.h" #include <GL/glew.h> #include "gfx/gl/shader.h" -#include "lib/strings.h" +#include "lib/strlen.h" constexpr const GLchar * src { R"GLSL-EMBED(dnl include(SOURCE))GLSL-EMBED" }; diff --git a/lib/strings.h b/lib/strlen.h index 9dca9ac..0053cce 100644 --- a/lib/strings.h +++ b/lib/strlen.h @@ -1,6 +1,7 @@ #pragma once #include <GL/glew.h> +#include <cstddef> constexpr auto constexpr_strlen(const GLchar * const s) |