summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-01-07 20:40:38 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-01-07 20:40:38 +0100
commit89de9d2f5d4a05eeefa2cc77e7a4f7dd48b31048 (patch)
tree678ebd78a6174af7b9ce4712971010e1f5f74e6d
parent7f49c5437a78a20c079b59667402717dad19a64b (diff)
downloadtermgl-89de9d2f5d4a05eeefa2cc77e7a4f7dd48b31048.tar.gz
removed unused libraries from cRender.h and linkerflags from Makefile
-rw-r--r--Makefile4
-rw-r--r--cRender.h7
2 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3d97022..a9dc6ee 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
CC = /usr/bin/g++
-CFLAGS = -Wall -g -std=c++11
-LDFLAGS = -lm
+CFLAGS = -Wall -g -std=c++11 -Werror=missing-prototypes
+LDFLAGS =
OUTPUT = Engine
BUILDDIR = build
diff --git a/cRender.h b/cRender.h
index 59ca352..1334cc3 100644
--- a/cRender.h
+++ b/cRender.h
@@ -3,13 +3,13 @@
#include <stdlib.h>
#include <stdio.h>
#include <string>
-#include <math.h>
-#include <iostream>
+//#include <math.h>
+//#include <iostream>
#include <termios.h>
#ifdef __linux__
#include <unistd.h>
- #include <term.h>
+ //#include <term.h>
#include <sys/ioctl.h>
typedef int WORD;
@@ -56,6 +56,7 @@
#define _COL_INVERSE 7
#define _COL_INVERSE_OFF 27
#endif
+
using namespace std;
struct sPos