2010-08-09 23:28:56 +10:00
|
|
|
#include <ruby/ruby.hpp>
|
2015-06-20 15:44:05 +10:00
|
|
|
using namespace nall;
|
|
|
|
|
using namespace ruby;
|
|
|
|
|
|
2015-02-26 21:10:46 +11:00
|
|
|
#undef deprecated
|
2010-10-23 16:08:05 +11:00
|
|
|
#undef mkdir
|
2019-07-22 01:39:32 +09:00
|
|
|
#undef noinline
|
2010-10-23 16:08:05 +11:00
|
|
|
#undef usleep
|
2015-06-20 15:44:05 +10:00
|
|
|
|
2015-06-22 23:31:49 +10:00
|
|
|
#if defined(DISPLAY_XORG)
|
2015-06-20 15:44:05 +10:00
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
#include <X11/Xutil.h>
|
|
|
|
|
#include <X11/Xatom.h>
|
2019-08-16 19:44:16 +09:00
|
|
|
#include <X11/extensions/Xrandr.h>
|
2015-06-22 23:31:49 +10:00
|
|
|
#elif defined(DISPLAY_QUARTZ)
|
2018-07-02 11:55:42 +10:00
|
|
|
#include <nall/macos/guard.hpp>
|
2015-06-20 15:44:05 +10:00
|
|
|
#include <Cocoa/Cocoa.h>
|
|
|
|
|
#include <Carbon/Carbon.h>
|
2019-08-17 23:41:44 +09:00
|
|
|
#include <CoreFoundation/CoreFoundation.h>
|
|
|
|
|
#include <IOKit/IOKitLib.h>
|
|
|
|
|
#include <IOKit/graphics/IOGraphicsLib.h>
|
2018-07-02 11:55:42 +10:00
|
|
|
#include <nall/macos/guard.hpp>
|
2015-06-22 23:31:49 +10:00
|
|
|
#elif defined(DISPLAY_WINDOWS)
|
2018-09-10 12:11:19 +10:00
|
|
|
#define far
|
2018-08-21 13:17:12 +10:00
|
|
|
#include <mmsystem.h>
|
2015-06-20 15:44:05 +10:00
|
|
|
#endif
|
|
|
|
|
|
2018-07-31 12:23:12 +10:00
|
|
|
#include <ruby/video/video.cpp>
|
|
|
|
|
#include <ruby/audio/audio.cpp>
|
|
|
|
|
#include <ruby/input/input.cpp>
|