From 697421dc65b1c7e1b72dbda2b71c0fcb5737f8e7 Mon Sep 17 00:00:00 2001 From: Jon Macey Date: Thu, 28 Nov 2024 20:14:57 +0000 Subject: [PATCH] Updated for Windows CI was working but lates MSVC was still problematic --- src/Obj.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Obj.cpp b/src/Obj.cpp index de413300..d300a299 100644 --- a/src/Obj.cpp +++ b/src/Obj.cpp @@ -26,14 +26,14 @@ Copyright (C) 2009 Jon Macey #if defined(WIN32) -// namespace std -// { -// template < typename T > -// bool signbit(T t) -// { -// return signbit(double(t)); -// } -// } // namespace std +namespace std +{ +// signbit is not defined for int in windows +bool signbit(int t) +{ + return signbit(double(t)); +} +} // namespace std #endif