Cross compile with MSYS2

This commit is contained in:
CYBERDEViL 2023-05-04 22:15:50 +02:00
parent d687b4ee0c
commit ef725ba3b6
3 changed files with 20 additions and 3 deletions

View File

@ -18,12 +18,18 @@
#define H_REWISE_READER
#include <stdio.h>
#include <linux/limits.h> // PATH_MAX
#include <string.h>
#include <unistd.h> // access, F_OK
#include <stdint.h> // uint32_t
#include <stdlib.h> // malloc
// PATH_MAX
#ifdef __linux__
#include <linux/limits.h>
#elif defined(__CYGWIN__) || defined(_WIN32) || defined(_WIN64)
#include <limits.h>
#endif
#include "errors.h"

View File

@ -17,7 +17,6 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <linux/limits.h> // PATH_MAX, NAME_MAX
#include <stdlib.h>
#include <getopt.h>
#include <time.h>
@ -27,6 +26,13 @@
#include <utime.h>
#include <sys/statvfs.h>
// PATH_MAX, NAME_MAX
#ifdef __linux__
#include <linux/limits.h>
#elif defined(__CYGWIN__) || defined(_WIN32) || defined(_WIN64)
#include <limits.h>
#endif
#include "print.h"
#include "reader.h"
#include "inflate.h"

View File

@ -15,10 +15,15 @@
*/
#include <stddef.h>
#include <linux/limits.h>
#include <string.h>
#include <errno.h>
#ifdef __linux__
#include <linux/limits.h>
#elif defined(__CYGWIN__) || defined(_WIN32) || defined(_WIN64)
#include <limits.h>
#endif
#include "wisescript.h"
#include "reader.h"