-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.h
More file actions
42 lines (32 loc) · 1.33 KB
/
Copy pathcommon.h
File metadata and controls
42 lines (32 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#ifndef COMMON_H
#define COMMON_H
/** @file common.h
* This file contains definitions that are used at many places.
* When included make sure it is the first \#include line.
*
* Current tokens:
* <dl>
* <dt>__ECLIPSE__
* <dd>Set this to 1 when using eclipse as your ide.
* <dt>__DEVCPP__
* <dd>Set this to 1 when using DevCPP as your ide.
* </dl>
*/
// Try to detect the platform and compiler (the outcome is not really used yet)
#if defined(__linux__) /* is this compiled on a linux machine ? */
// this could be Code::Blocks, Eclipse or plain GCC; can not be further autodetected
#elif defined(__MINGW_H) /* is this the "Minimalist GNU for Windows" compiler */
// this could be Code::Blocks or DevC++; can not be further autodetected
#elif defined(__CYGWIN__) /* is this Cygnus for Windows ? */
#elif defined(_WIN32) /* is this some 32 bit Windows ? */
#elif defined(_WIN64) /* is this some 64 bit Windows ? */
#endif
// A few handcrafted capabilities ...
// Some IDEs need special treatment (set to 1 as needed)
// Als je Eclipse gebruikt maak van de 0 een 1
#define __ECLIPSE__ 0 ///< Eclipse will not handle ansi color codes.
// Als je DevCPP gebruikt maak van de 0 een 1
#define __DEVCPP__ 0 ///< When using DevCPP your program window disappears immediately.
#endif /*COMMON_H*/
// vim:sw=4:ts=4:ai:aw: