summaryrefslogtreecommitdiff
path: root/source/libfud.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/libfud.cpp')
-rw-r--r--source/libfud.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/libfud.cpp b/source/libfud.cpp
index 252eae0..8c962ba 100644
--- a/source/libfud.cpp
+++ b/source/libfud.cpp
@@ -18,7 +18,7 @@
#include "libfud.hpp"
#include "fud_assert.hpp"
-#include "git_version.hpp"
+#include "fud_version.hpp"
#include <cstdlib>
@@ -27,10 +27,10 @@ namespace fud {
FUD fud()
{
FUD fudInfo{};
+ static_assert(sizeof(GitHash) >= sizeof(fudInfo.revision));
fudInfo.major = FudVersionMajor;
fudInfo.minor = FudVersionMinor;
fudInfo.patch = FudVersionPatch;
- static_assert(sizeof(GitHash) >= sizeof(fudInfo.revision));
auto copyResult = copyMem(fudInfo.revision.data(), fudInfo.revision.size(), GitHash, fudInfo.revision.size() - 1);
fudAssert(copyResult == FudStatus::Success);
fudInfo.revision[fudInfo.revision.size() - 1] = '\0';