Created
July 17, 2020 22:18
-
-
Save lilyanatia/4c42a670d7dec41d6ae97b7319ba8119 to your computer and use it in GitHub Desktop.
MCM fixes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/File.cpp b/File.cpp | |
index f543efb..bdd0a41 100644 | |
--- a/File.cpp | |
+++ b/File.cpp | |
@@ -98,7 +98,7 @@ std::string FileInfo::attrToStr(uint16_t attr) { | |
} | |
#ifdef WIN32 | |
-#include <Windows.h> | |
+#include <windows.h> | |
#pragma comment(lib, "User32.lib") | |
void FileInfo::CreateDir(const std::string& name) { | |
diff --git a/GD.hpp b/GD.hpp | |
index 8df8993..c77f569 100644 | |
--- a/GD.hpp | |
+++ b/GD.hpp | |
@@ -70,7 +70,7 @@ class LinearPredictor { | |
public: | |
template <typename Input> | |
Acc Cost(const Input* inputs, Acc actual) const { | |
- return f_.Cost<Acc>(*this, inputs, actual); | |
+ return f_.template Cost<Acc>(*this, inputs, actual); | |
} | |
template <typename Input> | |
diff --git a/Memory.cpp b/Memory.cpp | |
index 2289a7e..aa7eaa4 100644 | |
--- a/Memory.cpp | |
+++ b/Memory.cpp | |
@@ -30,7 +30,7 @@ | |
#define USE_MALLOC 1 | |
#ifdef WIN32 | |
-#include <Windows.h> | |
+#include <windows.h> | |
#else | |
// TODO: mmap | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment