summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-30 13:36:18 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-30 13:36:18 +0100
commit57f4e225d10c73bbefa276f01d37b13c4138e245 (patch)
tree0d357140507e311c63b7dae8ce62864a6629b3e7 /lib
parentReformat with new clang-format 16 (diff)
downloadilt-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.m42
-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)