diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | makefile | 6 | ||||
-rwxr-xr-x | src/main.cpp | 2 |
3 files changed, 9 insertions, 1 deletions
@@ -3,3 +3,5 @@ obj/*.o a.out a.exe notes.txt +a.pdb +remedy.rdbg @@ -30,6 +30,12 @@ $(OBJECTS): obj/%.o : src/%.cpp mkdir -p obj $(CXX) -g $(INCLUDE) $(CVERSION) $(CFLAGS) -c $< -o $@ +windows: + zig c++ -target x86_64-windows-gnu src/*.cpp -std=c++17 -g -gcodeview + +windows32: + zig c++ -target i386-windows-gnu src/*.cpp -std=c++17 -g -gcodeview + clean: rm obj/*.o diff --git a/src/main.cpp b/src/main.cpp index 732d67a..ac5c7e0 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,7 +22,7 @@ along with this program. If not, see https://www.gnu.org/licenses/ #include "time.h" #include "test.h" -#ifdef WIN32 +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) #define CLEAR std::system("cls") #else #define CLEAR std::cout << "\033[2J\033[1;1H" |