2018-11-15 23:42:29 +00: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-13 23:12:30 +00:00
|
|
|
#ifndef __SHADER_PLATFORM_H
|
|
|
|
#define __SHADER_PLATFORM_H
|
|
|
|
|
2018-05-14 22:19:55 +00:00
|
|
|
#include "port.h"
|
|
|
|
|
2023-03-23 21:53:43 +00:00
|
|
|
#if defined(SNES9X_QT)
|
|
|
|
#include <glad/gl.h>
|
|
|
|
#if defined(_WIN32)
|
|
|
|
#define realpath(src, resolved) _fullpath(resolved, src, PATH_MAX)
|
|
|
|
#endif
|
2018-05-14 22:19:55 +00:00
|
|
|
|
2023-03-23 21:53:43 +00:00
|
|
|
#elif defined(SNES9X_GTK)
|
|
|
|
#include <glad/gl.h>
|
|
|
|
#elif defined(_WIN32)
|
|
|
|
#include <windows.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "gl_core_3_1.h"
|
|
|
|
#include <direct.h>
|
2018-05-20 17:48:38 +00:00
|
|
|
|
2023-03-23 21:53:43 +00:00
|
|
|
#ifdef UNICODE
|
|
|
|
#define chdir(dir) _wchdir(Utf8ToWide(dir))
|
|
|
|
#define realpath(src, resolved) _twfullpath(resolved, src, PATH_MAX)
|
|
|
|
#else
|
|
|
|
#define chdir(dir) _chdir(dir)
|
|
|
|
#define realpath(src, resolved) _fullpath(resolved, src, PATH_MAX)
|
|
|
|
#endif
|
2018-05-14 22:19:55 +00:00
|
|
|
#endif
|
|
|
|
|
2018-05-13 23:12:30 +00:00
|
|
|
#endif /* __SHADER_PLATFORM_H */
|