restore include paths for cross-platform builds because i messed absolutely every #include up. dont worry that everything is modified, all i did was normalize line endings because CLRF snuck into the repo and this prevents fake diffs

This commit is contained in:
2026-03-24 19:07:55 -04:00
parent 7d485fdcd7
commit bfecad40be
1340 changed files with 264990 additions and 264996 deletions

View File

@@ -1,56 +1,56 @@
///
/// Original file by the_viking, fixed by Rômulo Fernandes
/// Should emulate windows finddata structure
///
#ifndef GCC_FINDFIRST_H
#define GCC_FINDFIRST_H
#if (defined(__GNUC__) || defined(__ARMCC_VERSION) || defined(__GCCXML__) || defined(__S3E__) ) && !defined(__WIN32)
#include <dirent.h>
#include "RakString.h"
#define _A_NORMAL 0x00 // Normal file
#define _A_RDONLY 0x01 // Read-only file
#define _A_HIDDEN 0x02 // Hidden file
#define _A_SYSTEM 0x04 // System file
#define _A_VOLID 0x08 // Volume ID
#define _A_SUBDIR 0x10 // Subdirectory
#define _A_ARCH 0x20 // File changed since last archive
#define FA_NORMAL 0x00 // Synonym of _A_NORMAL
#define FA_RDONLY 0x01 // Synonym of _A_RDONLY
#define FA_HIDDEN 0x02 // Synonym of _A_HIDDEN
#define FA_SYSTEM 0x04 // Synonym of _A_SYSTEM
#define FA_LABEL 0x08 // Synonym of _A_VOLID
#define FA_DIREC 0x10 // Synonym of _A_SUBDIR
#define FA_ARCH 0x20 // Synonym of _A_ARCH
const unsigned STRING_BUFFER_SIZE = 512;
typedef struct _finddata_t
{
char name[STRING_BUFFER_SIZE];
int attrib;
unsigned long size;
} _finddata;
/**
* Hold information about the current search
*/
typedef struct _findinfo_t
{
DIR* openedDir;
RakNet::RakString filter;
RakNet::RakString dirName;
} _findinfo;
long _findfirst(const char *name, _finddata_t *f);
int _findnext(long h, _finddata_t *f);
int _findclose(long h);
#endif
#endif
///
/// Original file by the_viking, fixed by Rômulo Fernandes
/// Should emulate windows finddata structure
///
#ifndef GCC_FINDFIRST_H
#define GCC_FINDFIRST_H
#if (defined(__GNUC__) || defined(__ARMCC_VERSION) || defined(__GCCXML__) || defined(__S3E__) ) && !defined(__WIN32)
#include <dirent.h>
#include "RakString.h"
#define _A_NORMAL 0x00 // Normal file
#define _A_RDONLY 0x01 // Read-only file
#define _A_HIDDEN 0x02 // Hidden file
#define _A_SYSTEM 0x04 // System file
#define _A_VOLID 0x08 // Volume ID
#define _A_SUBDIR 0x10 // Subdirectory
#define _A_ARCH 0x20 // File changed since last archive
#define FA_NORMAL 0x00 // Synonym of _A_NORMAL
#define FA_RDONLY 0x01 // Synonym of _A_RDONLY
#define FA_HIDDEN 0x02 // Synonym of _A_HIDDEN
#define FA_SYSTEM 0x04 // Synonym of _A_SYSTEM
#define FA_LABEL 0x08 // Synonym of _A_VOLID
#define FA_DIREC 0x10 // Synonym of _A_SUBDIR
#define FA_ARCH 0x20 // Synonym of _A_ARCH
const unsigned STRING_BUFFER_SIZE = 512;
typedef struct _finddata_t
{
char name[STRING_BUFFER_SIZE];
int attrib;
unsigned long size;
} _finddata;
/**
* Hold information about the current search
*/
typedef struct _findinfo_t
{
DIR* openedDir;
RakNet::RakString filter;
RakNet::RakString dirName;
} _findinfo;
long _findfirst(const char *name, _finddata_t *f);
int _findnext(long h, _finddata_t *f);
int _findclose(long h);
#endif
#endif