1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-26 13:52:06 +00:00
TegraExplorer/source/script/compat.h

23 lines
586 B
C
Raw Normal View History

2021-07-09 21:56:13 +01:00
#pragma once
#ifdef WIN32
#include <stdio.h>
#include <malloc.h>
2021-07-24 22:00:05 +01:00
#define gfx_printf(str, ...) printf(str, ##__VA_ARGS__)
2021-07-09 21:56:13 +01:00
#define gfx_vprintf(str, va) vprintf(str, va);
2021-07-24 22:00:05 +01:00
#define gfx_putc(x) gfx_printf("%c", x)
2021-07-09 21:56:13 +01:00
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
#define LP_VER_MJ 3
#define LP_VER_MN 0
#define LP_VER_BF 5
#define LP_VER "3.0.5"
2021-07-09 21:56:13 +01:00
#define FREE(x) if (x) free(x)
2021-07-23 13:03:49 +01:00
#define CpyStr(x) _strdup(x)
2021-07-09 21:56:13 +01:00
#include "vector.h"
#pragma _CRT_SECURE_NO_WARNINGS
#else
#include "../gfx/gfx.h"
#include <mem/heap.h>
#include "../utils/vector.h"
#include "../utils/utils.h"
#endif