commit baec7ed55e5f0fa57fed4a9853bd99781e28c991
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Mon Jan 24 19:11:04 2022 -0700
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Mon Jan 24 19:11:04 2022 -0700
Tweaks to get building on mac desktop
*import map explicitely
*escape dash in regex
*tweak cflags in makefile
---
platform/SDL2Desktop/Makefile | 5 +++--
source/cart.cpp | 2 +-
source/emojiconversion.cpp | 1 +
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/platform/SDL2Desktop/Makefile b/platform/SDL2Desktop/Makefile
index 8761532..d31a594 100644
--- a/platform/SDL2Desktop/Makefile
+++ b/platform/SDL2Desktop/Makefile
@@ -16,12 +16,13 @@ INCLUDES := ${INCLUDES}
#---------------------------------------------------------------------------------
CC = $(CXX)
-CFLAGS := -g -Wall -ffunction-sections \
+CFLAGS := -g -Wall -Wno-deprecated -ffunction-sections -std=c++17 \
$(DEFINES)
CFLAGS += $(INCLUDE) -DVER_STR=\"$(APP_VERSION)\"
-CXXFLAGS := $(CFLAGS) -fno-rtti -fexceptions -std=gnu++17
+CXXFLAGS := $(CFLAGS) -fno-rtti -fexceptions
+#-std=gnu++11 was used before... not sure of difference
LIBS := -lSDL2
diff --git a/source/cart.cpp b/source/cart.cpp
index 83998d6..150477d 100644
--- a/source/cart.cpp
+++ b/source/cart.cpp
@@ -295,7 +295,7 @@ bool Cart::loadCartFromPng(std::string filename){
}
-static std::regex _includeRegex = std::regex("\\s*#include\\s+([\\\\/\\w-\\.]+)");
+static std::regex _includeRegex = std::regex("\\s*#include\\s+([\\\\/A-Za-z0-9_\\-\\.]+)");
//tac08 based cart parsing and stripping of emoji
Cart::Cart(std::string filename, std::string cartDirectory){
diff --git a/source/emojiconversion.cpp b/source/emojiconversion.cpp
index 96c3501..b3229b1 100644
--- a/source/emojiconversion.cpp
+++ b/source/emojiconversion.cpp
@@ -23,6 +23,7 @@
#include <cstring>
#include <regex>
#include <string_view>
+#include <map>
#include "emojiconversion.h"