large file support

This commit is contained in:
j 2011-08-05 12:19:04 +02:00
parent 9bfe6d4337
commit 5f6ed9b777
2 changed files with 13 additions and 3 deletions

View file

@ -6,7 +6,6 @@ BINDIR ?= ${DESTDIR}${PREFIX}/bin
MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1 MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1
CC ?= gcc CC ?= gcc
CFLAGS ?= -D_FILE_OFFSET_BITS=64
CFLAGS += -Wall -ffast-math -fsigned-char CFLAGS += -Wall -ffast-math -fsigned-char
CFLAGS += -I. -Isrc -Isrc/halloc CFLAGS += -I. -Isrc -Isrc/halloc
@ -15,8 +14,7 @@ INSTALL = install
INCLUDEFLAGS ?= `pkg-config --cflags oggplay nestegg` `imlib2-config --cflags` INCLUDEFLAGS ?= `pkg-config --cflags oggplay nestegg` `imlib2-config --cflags`
LINKFLAGS ?= -L${PREFIX}/lib LINKFLAGS ?= -L${PREFIX}/lib
LINKFLAGS += `imlib2-config --libs` LINKFLAGS += `imlib2-config --libs`
LINKFLAGS += `pkg-config --libs oggplay nestegg` LINKFLAGS += `pkg-config --libs oggplay nestegg vpx`
LINKFLAGS += -lvpx
all: ${PROG} all: ${PROG}

View file

@ -16,6 +16,18 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with This program. If not, see <http://www.gnu.org/licenses/>. * 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 <assert.h>
#include <stdarg.h> #include <stdarg.h>