-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstdafx.h
102 lines (87 loc) · 2.47 KB
/
stdafx.h
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <stdint.h>
#include <vector>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <fstream>
#include <map>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
#include <algorithm>
#ifdef WIN32
#include "Windows.h"
#include <io.h>
#include <direct.h>
#include "capsimg/Compatibility/dirent.h"
#else
#include <dirent.h>
#include <stddef.h> // offsetof
#include <string.h>
#include <ctype.h>
#include <sys/stat.h>
#include <unistd.h>
#include <time.h> // localtime
#define MAX_PATH ( 260 )
#define _access access
#ifndef __MINGW32__
#define _mkdir(x) mkdir(x,0)
#else
#define _mkdir(x) mkdir(x)
#endif
#ifndef __cdecl
#define __cdecl
#endif
#define _lrotl(x,n) (((x) << (n)) | ((x) >> (sizeof(x)*8-(n))))
#define _lrotr(x,n) (((x) >> (n)) | ((x) << (sizeof(x)*8-(n))))
typedef const char *LPCSTR;
typedef const char *LPCTSTR;
#define d_namlen d_reclen
#define __assume(cond) do { if (!(cond)) __builtin_unreachable(); } while (0)
typedef struct _SYSTEMTIME {
uint16_t wYear;
uint16_t wMonth;
uint16_t wDayOfWeek;
uint16_t wDay;
uint16_t wHour;
uint16_t wMinute;
uint16_t wSecond;
uint16_t wMilliseconds;
} SYSTEMTIME, *LPSYSTEMTIME;
extern "C" void GetLocalTime(LPSYSTEMTIME lpSystemTime);
#endif
std::vector<std::string> local_DirectoryList(const std::string& pPath, const std::string& pExtension);
#define INTEL
#define MAX_FILENAMELEN (MAX_PATH*2)
// external definitions
#include "capsimg/Core/CommonTypes.h"
// Core components
#include "capsimg/Core/BaseFile.h"
#include "capsimg/Core/DiskFile.h"
#include "capsimg/Core/MemoryFile.h"
#include "capsimg/Core/CRC.h"
#include "capsimg/Core/BitBuffer.h"
// IPF library public definitions
#include "capsimg/LibIPF/CapsLibAll.h"
// CODECs
#include "capsimg/Codec/DiskEncoding.h"
#include "capsimg/Codec/CapsDefinitions.h"
#include "capsimg/Codec/CTRawCodec.h"
// file support
#include "capsimg/CAPSImg/CapsFile.h"
#include "capsimg/CAPSImg/DiskImage.h"
#include "capsimg/CAPSImg/CapsLoader.h"
#include "capsimg/CAPSImg/CapsImageStd.h"
#include "capsimg/CAPSImg/CapsImage.h"
#include "capsimg/CAPSImg/StreamImage.h"
#include "capsimg/CAPSImg/StreamCueImage.h"
#include "capsimg/CAPSImg/DiskImageFactory.h"
// Device access
#include "capsimg/Device/C2Comm.h"
// system
#include "capsimg/CAPSImg/CapsCore.h"
#include "capsimg/CAPSImg/CapsFDCEmulator.h"
#include "capsimg/CAPSImg/CapsFormatMFM.h"