andreasjhkarlsson / gbdk-n

gbdk libraries updated for newer versions of sdcc
174 stars 25 forks source link

File types.h was changed for preventing compilation errors. #4

Closed majstar closed 8 years ago

majstar commented 8 years ago

The commit fixes the problem with duplicate definition of 'size_t' type. The problem occurred when I tried compiling code examples from gbdk-2.96a with sdcc-3.3 and gbdk-n:

$> sdcc -mgbz80 --no-std-crt0 -I ./gbdk-n-master/bin/../include -I ./gbdk-n-master/bin/../include/asm -c examples/gb/samptest.c _/usr/local/bin/../share/sdcc/include/stdio.h:46: error 0: Duplicate symbol 'size_t', symbol IGNORED ./gbdk-n-master/bin/../include/asm/gbz80/types.h:33: error 177: previously defined here /usr/local/bin/../share/sdcc/include/stdio.h:46: error 51: typedef/enum 'sizet' duplicate. Previous definition Ignored

andreasjhkarlsson commented 8 years ago

Great!