win32 port: visibility, warnings, templates

This commit is contained in:
Matej Sekoranja
2013-11-27 01:11:12 +01:00
parent ccad38f2db
commit 301038664e
31 changed files with 141 additions and 86 deletions

View File

@@ -5,6 +5,10 @@
*/
/* Author: Michael Davidsaver */
#ifdef _WIN32
#define NOMINMAX
#endif
#include <fstream>
#include <iostream>
#include <algorithm>
@@ -298,12 +302,12 @@ try {
testDiag("Float to int w/ round towards zero (aka truncation)");
TEST(int32_t, 2, float, 2.1);
TEST(int32_t, 2, float, 2.5);
TEST(int32_t, 2, float, 2.7);
TEST(int32_t, -2, float, -2.1);
TEST(int32_t, -2, float, -2.5);
TEST(int32_t, -2, float, -2.7);
TEST(int32_t, 2, float, 2.1f);
TEST(int32_t, 2, float, 2.5f);
TEST(int32_t, 2, float, 2.7f);
TEST(int32_t, -2, float, -2.1f);
TEST(int32_t, -2, float, -2.5f);
TEST(int32_t, -2, float, -2.7f);
testDiag("String Printing/parsing");