again with xm...
This commit is contained in:
@@ -9,13 +9,11 @@
|
|||||||
#include "string_.h"
|
#include "string_.h"
|
||||||
#define POPEN _popen
|
#define POPEN _popen
|
||||||
#define PCLOSE _pclose
|
#define PCLOSE _pclose
|
||||||
constexpr auto PWRITE_MODE = "wb";
|
constexpr auto PWRITE_MODE = "wb";
|
||||||
constexpr auto PREAD_MODE = "r";
|
|
||||||
#elif __unix__
|
#elif __unix__
|
||||||
#define POPEN popen
|
#define POPEN popen
|
||||||
#define PCLOSE pclose
|
#define PCLOSE pclose
|
||||||
constexpr auto PWRITE_MODE = "w";
|
constexpr auto PWRITE_MODE = "w";
|
||||||
constexpr auto PREAD_MODE = "r";
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|||||||
@@ -7,16 +7,7 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#include "xm_wrapper.h"
|
||||||
#ifndef __attribute__
|
|
||||||
#define __attribute__(x)
|
|
||||||
#endif
|
|
||||||
#ifndef restrict
|
|
||||||
#define restrict __restrict
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <xm.h>
|
|
||||||
|
|
||||||
namespace anm2ed::resource
|
namespace anm2ed::resource
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <xm.h>
|
#include "xm_wrapper.h"
|
||||||
|
|
||||||
namespace anm2ed::resource::xm
|
namespace anm2ed::resource::xm
|
||||||
{
|
{
|
||||||
@@ -1741,4 +1741,4 @@ namespace anm2ed::resource::xm
|
|||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00, 0xa9, 0x00, 0xfe, 0x05, 0x08, 0x03, 0x0b, 0x84, 0x0b, 0x09, 0x01, 0x02, 0x03, 0x03, 0x00, 0xff,
|
0x00, 0x00, 0x00, 0xa9, 0x00, 0xfe, 0x05, 0x08, 0x03, 0x0b, 0x84, 0x0b, 0x09, 0x01, 0x02, 0x03, 0x03, 0x00, 0xff,
|
||||||
0xfe, 0xfe, 0xfc, 0xfb, 0xfd, 0xff, 0xfc, 0x00, 0x00, 0x89, 0xfa, 0xf5, 0x0f, 0xf8, 0xf6, 0x00};
|
0xfe, 0xfe, 0xfc, 0xfb, 0xfd, 0xff, 0xfc, 0x00, 0x00, 0x89, 0xfa, 0xf5, 0x0f, 0xf8, 0xf6, 0x00};
|
||||||
}
|
}
|
||||||
|
|||||||
12
src/resource/xm_wrapper.h
Normal file
12
src/resource/xm_wrapper.h
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#ifndef __attribute__
|
||||||
|
#define __attribute__(x)
|
||||||
|
#endif
|
||||||
|
#ifndef restrict
|
||||||
|
#define restrict
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <xm.h>
|
||||||
Reference in New Issue
Block a user