Группа :: Система/Настройка/Оборудование
Пакет: TurionPowerControl
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: tpc-0.44-remove-MSVC_Round.patch
Скачать
Скачать
diff -urN ./MSVC_Round.cpp tpc-0.44-rc2/src/MSVC_Round.cpp
--- ./MSVC_Round.cpp 2013-01-12 07:04:30.000000000 +0000
+++ tpc-0.44-rc2/src/MSVC_Round.cpp 1970-01-01 01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-#include "MSVC_Round.h"
-
-int round (float value) {
- return (int)(floor(value+0.5));
-}
\ No newline at end of file
diff -urN ./MSVC_Round.h tpc-0.44-rc2/src/MSVC_Round.h
--- ./MSVC_Round.h 2013-01-12 07:04:29.000000000 +0000
+++ tpc-0.44-rc2/src/MSVC_Round.h 1970-01-01 01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-#pragma once
-
-#include <math.h>
-
-int round (float);
\ No newline at end of file
diff -urN ./Makefile tpc-0.44-rc2/src/Makefile
--- ./Makefile 2013-01-12 07:04:29.000000000 +0000
+++ tpc-0.44-rc2/src/Makefile 2016-06-11 23:14:16.370046054 +0100
@@ -20,7 +20,6 @@
Llano.cpp \
Interlagos.cpp \
MSRObject.cpp \
- MSVC_Round.cpp \
PCIRegObject.cpp \
PerformanceCounter.cpp \
Processor.cpp \
diff -urN ./Processor.h tpc-0.44-rc2/src/Processor.h
--- ./Processor.h 2013-01-12 07:04:30.000000000 +0000
+++ tpc-0.44-rc2/src/Processor.h 2016-06-11 23:15:26.858437443 +0100
@@ -13,7 +13,7 @@
#include <windows.h>
#include "OlsApi.h"
#include "OlsDef.h"
-#include "MSVC_Round.h"
+#include <math.h>
#include <tchar.h>
#endif