Last active
September 3, 2018 06:36
-
-
Save YamashitaRen/43482f1eed4a505f7076593e5d9dfa1e to your computer and use it in GitHub Desktop.
Fix build of turionpowercontrol with newer GCC.
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
commit b380377d028415e4fc59e018c1ecfa36ae3b878a | |
Author: Yamashita Ren <[email protected]> | |
Date: Mon Sep 3 01:49:57 2018 +0200 | |
Fix compilation with newer GCC. | |
diff --git a/MSVC_Round.cpp b/MSVC_Round.cpp | |
index 2200335..2d0bb8c 100644 | |
--- a/MSVC_Round.cpp | |
+++ b/MSVC_Round.cpp | |
@@ -1,5 +1,5 @@ | |
#include "MSVC_Round.h" | |
-int round (float value) { | |
+int round_to_int (float value) { | |
return (int)(floor(value+0.5)); | |
-} | |
\ No newline at end of file | |
+} | |
diff --git a/MSVC_Round.h b/MSVC_Round.h | |
index 7b550b6..51c4128 100644 | |
--- a/MSVC_Round.h | |
+++ b/MSVC_Round.h | |
@@ -2,4 +2,4 @@ | |
#include <math.h> | |
-int round (float); | |
\ No newline at end of file | |
+int round_to_int (float); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
turionpowercontrol/tpc#38
turionpowercontrol/tpc#41