From c62ba61e3d74aa6db1f0658b496ef67c9b9a2016 Mon Sep 17 00:00:00 2001 From: Dimitris Pliatsios Date: Sat, 12 Sep 2015 23:07:56 +0300 Subject: [PATCH 1/2] Corrected OS detection in preprocessor --- include/sb7.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sb7.h b/include/sb7.h index 6c97c9f..9da0e78 100644 --- a/include/sb7.h +++ b/include/sb7.h @@ -26,7 +26,7 @@ #ifndef __SB7_H__ #define __SB7_H__ -#ifdef WIN32 +#ifdef _WIN32 #pragma once #define _CRT_SECURE_NO_WARNINGS 1 From 803d67877d061c378bdb26dc02990d7447f3b4ac Mon Sep 17 00:00:00 2001 From: Dimitris Pliatsios Date: Sat, 12 Sep 2015 23:41:14 +0300 Subject: [PATCH 2/2] Use strcpy_s to avoid errors in visual studio 2013 --- include/sb7.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sb7.h b/include/sb7.h index 9da0e78..db2317d 100644 --- a/include/sb7.h +++ b/include/sb7.h @@ -177,7 +177,7 @@ class application virtual void init() { - strcpy(info.title, "OpenGL SuperBible Example"); + strcpy_s(info.title, "OpenGL SuperBible Example"); info.windowWidth = 800; info.windowHeight = 600; #ifdef __APPLE__