Skip to content

Instantly share code, notes, and snippets.

@YamashitaRen
Last active September 3, 2018 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YamashitaRen/43482f1eed4a505f7076593e5d9dfa1e to your computer and use it in GitHub Desktop.
Save YamashitaRen/43482f1eed4a505f7076593e5d9dfa1e to your computer and use it in GitHub Desktop.
Fix build of turionpowercontrol with newer GCC.
commit b380377d028415e4fc59e018c1ecfa36ae3b878a
Author: Yamashita Ren <lemaitre.dulotus@yahoo.fr>
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);
@MrCsabaToth
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment