Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/dx.h
2 views
1
/* Copyright 2008 Theo Berkau
2
3
This file is part of Yabause.
4
5
Yabause 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; either version 2 of the License, or
8
(at your option) any later version.
9
10
Yabause is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with Yabause; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
#ifndef DX_H
20
#define DX_H
21
22
#ifdef __MINGW32__
23
// I have to do this because for some reason because the dxerr8.h header is fubared
24
const char* __stdcall DXGetErrorString8A(HRESULT hr);
25
#define DXGetErrorString8 DXGetErrorString8A
26
const char* __stdcall DXGetErrorDescription8A(HRESULT hr);
27
#define DXGetErrorDescription8 DXGetErrorDescription8A
28
#else
29
#ifndef DXERRH_IS_BROKEN
30
#include <dxerr9.h>
31
32
#define DXGetErrorString8 DXGetErrorString9A
33
#define DXGetErrorDescription8 DXGetErrorDescription9A
34
#else
35
#include <dxerr.h>
36
37
#define DXGetErrorString8 DXGetErrorStringA
38
#define DXGetErrorDescription8 DXGetErrorDescriptionA
39
40
#endif
41
#endif
42
43
#endif
44
45