large file support
This commit is contained in:
parent
9bfe6d4337
commit
5f6ed9b777
2 changed files with 13 additions and 3 deletions
4
Makefile
4
Makefile
|
@ -6,7 +6,6 @@ BINDIR ?= ${DESTDIR}${PREFIX}/bin
|
|||
MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1
|
||||
|
||||
CC ?= gcc
|
||||
CFLAGS ?= -D_FILE_OFFSET_BITS=64
|
||||
CFLAGS += -Wall -ffast-math -fsigned-char
|
||||
CFLAGS += -I. -Isrc -Isrc/halloc
|
||||
|
||||
|
@ -15,8 +14,7 @@ INSTALL = install
|
|||
INCLUDEFLAGS ?= `pkg-config --cflags oggplay nestegg` `imlib2-config --cflags`
|
||||
LINKFLAGS ?= -L${PREFIX}/lib
|
||||
LINKFLAGS += `imlib2-config --libs`
|
||||
LINKFLAGS += `pkg-config --libs oggplay nestegg`
|
||||
LINKFLAGS += -lvpx
|
||||
LINKFLAGS += `pkg-config --libs oggplay nestegg vpx`
|
||||
|
||||
all: ${PROG}
|
||||
|
||||
|
|
|
@ -16,6 +16,18 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with This program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#if !defined(_GNU_SOURCE)
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#if !defined(_LARGEFILE_SOURCE)
|
||||
#define _LARGEFILE_SOURCE
|
||||
#endif
|
||||
#if !defined(_LARGEFILE64_SOURCE)
|
||||
#define _LARGEFILE64_SOURCE
|
||||
#endif
|
||||
#if !defined(_FILE_OFFSET_BITS)
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdarg.h>
|
||||
|
|
Loading…
Reference in a new issue