source: branches/work_320/stdafx.h @ 679

Revision 677, 1.8 KB checked in by jls17, 5 years ago (diff)
  • the sorting does now use lower-case-values again
  • fixed compile errors because of missing stdexcept include
  • updated IndexSorter? tests
  • updated ARInside.vsproj file regarding breakpad-support
Line 
1//Copyright (C) 2009 Stefan Nerlich | stefan.nerlich@hotmail.com
2//
3//This file is part of ARInside.
4//
5//    ARInside is free software: you can redistribute it and/or modify
6//    it under the terms of the GNU General Public License as published by
7//    the Free Software Foundation, version 2 of the License.
8//
9//    ARInside is distributed in the hope that it will be useful,
10//    but WITHOUT ANY WARRANTY; without even the implied warranty of
11//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12//    GNU General Public License for more details.
13//
14//    You should have received a copy of the GNU General Public License
15//    along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
16
17#pragma once
18#include <string>
19#include <string.h>
20#include <iostream>
21#include <fstream>
22#include <sstream>
23#include <list>
24#include <map>
25#include <vector>
26#include <time.h>
27#include <stdlib.h> // JLS17_LINUX
28#include <stdio.h>
29#include <memory>
30#include <iterator>
31#include <algorithm>
32#include <functional>
33#include <assert.h>
34#include <stdexcept>
35
36#ifdef WIN32 // JLS17 LINUX
37#include <windows.h>
38#include <io.h>
39#include <direct.h>
40#include <shlwapi.h>
41#else // WIN32
42#include <sys/types.h>
43#include <dirent.h>
44#include <unistd.h>
45#endif // WIN32
46#include <errno.h>
47
48#include <sys/stat.h>
49
50#include "ARApi.h"
51#include "util/Util.h"
52
53extern const char* MenuSeparator;
54extern const char* EmptyRunIf;
55extern const char* EmptyValue;
56
57using namespace std;
58using std::for_each;
59
60template<typename T>
61void SortAndRemoveDuplicates(vector<T>& v) { sort(v.begin(), v.end()); v.erase(unique(v.begin(), v.end()), v.end()); }
62
63// we use the zlibwapi.dll now to support 32- and 64-bit (http://www.winimage.com/zLibDll)
64#define ZLIB_WINAPI
Note: See TracBrowser for help on using the repository browser.