Browse Source

Fixed compilation error (on windows)

refactor
3 years ago
parent
commit
4f571e0d11
2 changed files with 5 additions and 2 deletions
  1. 1
    1
      Global.cpp
  2. 4
    1
      Global.h

+ 1
- 1
Global.cpp View File

@@ -1,5 +1,5 @@
#include "Global.h"
#include <iostream>
using namespace std;

// placeholders for old GUI functions

+ 4
- 1
Global.h View File

@@ -19,6 +19,9 @@

#include <ctime>
#include <string>
#ifdef __WIN32
#include <windows.h>
#endif

////////////////////////////////////////////////////////////////////////////////
///////////////////////////// GENERAL DEFINITIONS //////////////////////////////
@@ -30,7 +33,7 @@ typedef unsigned long ulong;

#define TEXTLEN 256 // Maximal length of strings

#ifdef _WIN32
#ifdef __WIN32
#define MAXPATH 247
#define MAXFILE 255
//!!! Find values for the following

Loading…
Cancel
Save