2018-11-16 00:42:29 +01:00
|
|
|
/*****************************************************************************\
|
|
|
|
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
|
|
|
|
This file is licensed under the Snes9x License.
|
|
|
|
For further information, consult the LICENSE file in the root directory.
|
|
|
|
\*****************************************************************************/
|
|
|
|
|
2018-05-14 01:12:30 +02:00
|
|
|
#ifndef __SHADER_PLATFORM_H
|
|
|
|
#define __SHADER_PLATFORM_H
|
|
|
|
|
2018-05-15 00:19:55 +02:00
|
|
|
#include "port.h"
|
|
|
|
|
2018-05-14 01:12:30 +02:00
|
|
|
#ifdef SNES9X_GTK
|
|
|
|
#include <epoxy/gl.h>
|
|
|
|
#include <epoxy/glx.h>
|
|
|
|
#endif
|
|
|
|
|
2018-05-15 00:19:55 +02:00
|
|
|
#ifdef _WIN32
|
|
|
|
#include <windows.h>
|
|
|
|
#include <stdlib.h>
|
2018-05-20 19:48:38 +02:00
|
|
|
#include "gl_core_3_1.h"
|
|
|
|
#include <direct.h>
|
2018-05-15 00:19:55 +02:00
|
|
|
|
2018-05-24 18:19:00 +02:00
|
|
|
#ifdef UNICODE
|
|
|
|
#define chdir(dir) _wchdir(Utf8ToWide(dir))
|
|
|
|
#define realpath(src, resolved) _twfullpath(resolved, src, PATH_MAX)
|
|
|
|
#else
|
2018-05-15 00:19:55 +02:00
|
|
|
#define chdir(dir) _chdir(dir)
|
|
|
|
#define realpath(src, resolved) _fullpath(resolved, src, PATH_MAX)
|
2018-05-24 18:19:00 +02:00
|
|
|
#endif
|
2018-05-20 19:48:38 +02:00
|
|
|
|
2018-05-15 00:19:55 +02:00
|
|
|
#endif
|
|
|
|
|
2018-05-14 01:12:30 +02:00
|
|
|
#endif /* __SHADER_PLATFORM_H */
|