Skip to content

Commit

Permalink
Fixed windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv committed Feb 22, 2024
1 parent b8bcb11 commit 1682451
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/n64graphics/n64graphics.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#if defined(_WIN32) || defined(_WIN64)
#include <string.h>
#else
#include <strings.h>
#endif

#define STBI_NO_LINEAR
#define STBI_NO_HDR
Expand Down
1 change: 1 addition & 0 deletions lib/n64graphics/stb_image_write.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ LICENSE
#define INCLUDE_STB_IMAGE_WRITE_H

#include <stdlib.h>
#include <stdint.h>

// if STB_IMAGE_WRITE_STATIC causes problems, try defining STBIWDEF to 'inline' or 'static inline'
#ifndef STBIWDEF
Expand Down
2 changes: 1 addition & 1 deletion src/Companion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void Companion::ParseModdingConfig() {
if(!fs::exists(path)) {
throw std::runtime_error("No modding config found, please run in export mode first");
}
auto modding = YAML::LoadFile(path);
auto modding = YAML::LoadFile(path.string());
for(auto assets = modding["assets"].begin(); assets != modding["assets"].end(); ++assets) {
auto name = assets->first.as<std::string>();
auto asset = assets->second.as<std::string>();
Expand Down

0 comments on commit 1682451

Please sign in to comment.