1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Include the header that contains the PATH_MAX on linux in system path library.

Move the common typedefs inside the namespace otherwise the character type is not found.
This commit is contained in:
Sandu Liviu Catalin 2016-03-27 18:55:34 +03:00
parent e0c2c01e25
commit b8881b0059

View File

@ -12,9 +12,13 @@
#ifdef SQMOD_OS_WINDOWS
#include <windows.h>
#else
#include <linux/limits.h>
#include <unistd.h>
#endif
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
#ifdef SQMOD_OS_WINDOWS
// Maximum path size in characters
@ -28,9 +32,6 @@
typedef CharT PChar;
#endif // SQMOD_OS_WINDOWS
// ------------------------------------------------------------------------------------------------
namespace SqMod {
// ------------------------------------------------------------------------------------------------
SQInteger SysPath::Typename(HSQUIRRELVM vm)
{