This repository was archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstdafx.h
More file actions
73 lines (60 loc) · 1.45 KB
/
stdafx.h
File metadata and controls
73 lines (60 loc) · 1.45 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// stdafx.h : Includedatei fuer Standardsystem-Includedateien
// oder haeufig verwendete projektspezifische Includedateien,
// die nur in unregelmaessigen Abstaenden geaendert werden.
//
#pragma once
#include <stdio.h>
// Plattform defines
#if defined(_WIN32)
#define WINDOWS 1
#elif defined(__APPLE__) && defined(__MACH__)
#define APPLE 1
#elif defined(__gnu_linux__) || defined(__linux__)
#define LINUX 1
#endif
// Compiler defines
#if defined(_MSC_VER)
#define VISUALSTUDIO 1
#elif defined(__CYGWIN__)
#define CYGWIN 1
#elif defined(__MINGW32__)
#define MINGW 1
#define WINVER 0x0502
#define _WIN32_WINNT 0x0501
#elif defined(__BORLANDC__)
#define BORLANDC 1
#endif
#if !WINDOWS
#define INVALID_SOCKET 1
#define SOCKET_ERROR -1
#define SD_SEND 1
#endif
// Includes
#if VISUALSTUDIO
#include "targetver.h"
#endif
#if WINDOWS
#include <tchar.h>
#include <ws2tcpip.h> // WinSocket
#elif APPLE
#include <unistd.h> // for sleep() Function
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#endif
// Redefines for safe VS functions
#if MINGW || APPLE || BORLANDC
#define scanf_s scanf
#define sscanf_s sscanf
#define sprintf_s sprintf
#define strcat_s strcat
#endif
// TODO: Hier auf zusaetzliche Header, die das Programm erfordert, verweisen.
#include <string.h> // for String functions
#include <stdlib.h>
#include "bosFunctions.h"
#include "colors.h"