COMP: Windows Support

This commit is contained in:
2023-02-05 11:21:18 -05:00
parent e792e93eb9
commit cb8413499b
3 changed files with 6 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
#include <limits>
namespace tc {
using Mult = u_int16_t;
using Mult = std::uint16_t;
constexpr Mult FREE = 0;
/**

2
vendor/embed.cmake vendored
View File

@@ -52,7 +52,7 @@ function(_embed_file OUTPUT_OBJECT FILE)
COMMENT "Embedding ${FILE} in ${OBJECT}"
OUTPUT "${FILE}.o" DEPENDS "${FILE}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMAND ${EMBED_LD} -r -o "${OBJECT}" -z noexecstack --format=binary "${FILE}"
COMMAND ${EMBED_LD} -r -o "${OBJECT}" --format=binary "${FILE}"
COMMAND ${EMBED_OBJCOPY} --rename-section .data=.rodata,alloc,load,readonly,data,contents "${OBJECT}"
VERBATIM
)

View File

@@ -22,6 +22,10 @@ __attribute__((unused)) __declspec(dllexport) int NvOptimusEnablement = 0x000000
}
#endif
#ifndef M_PI_2f32
#define M_PI_2f32 3.14159265358979323846f
#endif
struct Matrices {
Eigen::Matrix4f proj;
Eigen::Matrix4f view;