Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions dep/StormLib/src/FileStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
/* 11.06.10 1.00 Lad Derived from StormPortMac.cpp and StormPortLinux.cpp */
/*****************************************************************************/

#if defined __FreeBSD__
# define O_LARGEFILE 0100000
# define stat64 stat
# define _stat stat
# define _getcwd getcwd
# define off_t off64_t
# define lseek lseek64
# define fstat fstat64
#endif

#define __STORMLIB_SELF__
#include "StormLib.h"
#include "StormCommon.h"
Expand Down
14 changes: 12 additions & 2 deletions dep/g3dlite/source/FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@author Morgan McGuire, http://graphics.cs.williams.edu

@author 2002-06-06
@edited 2010-04-10
@edited 2012-06-20
*/
#include "G3D/FileSystem.h"
#include "G3D/System.h"
Expand All @@ -27,10 +27,20 @@
# include <io.h>

#define stat64 _stat64
#elif defined(__FreeBSD__)
# include <dirent.h>
# include <fnmatch.h>
# include <unistd.h>
# define O_LARGEFILE 0100000
# define stat64 stat
# define _stat stat
# define _getcwd getcwd
#else
# include <dirent.h>
# include <fnmatch.h>
# include <unistd.h>
# define O_LARGEFILE 0100000
# define stat64 stat
# define _getcwd getcwd
# define _stat stat
#endif
Expand Down Expand Up @@ -805,4 +815,4 @@ void FilePath::parse
++cur;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright (C) 2010-2012 Project SkyFire <http://www.projectskyfire.org/>
* Copyright (C) 2011 MigCore <http://wow-mig.ru/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
Expand Down