/* Copyright 2008 Theo Berkau12This file is part of Yabause.34Yabause is free software; you can redistribute it and/or modify5it under the terms of the GNU General Public License as published by6the Free Software Foundation; either version 2 of the License, or7(at your option) any later version.89Yabause is distributed in the hope that it will be useful,10but WITHOUT ANY WARRANTY; without even the implied warranty of11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12GNU General Public License for more details.1314You should have received a copy of the GNU General Public License15along with Yabause; if not, write to the Free Software16Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA17*/18#ifndef DX_H19#define DX_H2021#ifdef __MINGW32__22// I have to do this because for some reason because the dxerr8.h header is fubared23const char* __stdcall DXGetErrorString8A(HRESULT hr);24#define DXGetErrorString8 DXGetErrorString8A25const char* __stdcall DXGetErrorDescription8A(HRESULT hr);26#define DXGetErrorDescription8 DXGetErrorDescription8A27#else28#ifndef DXERRH_IS_BROKEN29#include <dxerr9.h>3031#define DXGetErrorString8 DXGetErrorString9A32#define DXGetErrorDescription8 DXGetErrorDescription9A33#else34#include <dxerr.h>3536#define DXGetErrorString8 DXGetErrorStringA37#define DXGetErrorDescription8 DXGetErrorDescriptionA3839#endif40#endif4142#endif434445