j4w3d / gross

Automatically exported from code.google.com/p/gross
Other
0 stars 0 forks source link

include/utils.h getline naming issues #88

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
"Modern" versions of the stdlib already have a `getline` which will result in a 
build error:
In file included from utils.c:22:0:
../include/utils.h:42:5: error: conflicting types for ‘getline’
/usr/include/stdio.h:671:20: note: previous declaration of ‘getline’ was 
here
make[2]: *** [utils.o] Error 1
make[2]: Leaving directory `/home/jbergstroem/gross-read-only/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jbergstroem/gross-read-only'
make: *** [all] Error 2
zsh: exit 2     make

A quick grep tells me it isn't even used, so we might as well remove it? 
(remove, rename worked for me)

Original issue reported on code.google.com by jo...@bergstroem.nu on 14 Oct 2011 at 6:56

GoogleCodeExporter commented 8 years ago
You're right, it isn't used. It's been long gone from the sources. Someone (It 
was me...) was sloppy and forgot to remove it from utils.h, too.

Workaround is simple, just remove the line from utils.h.

Original comment by eino.tuominen@gmail.com on 14 Oct 2011 at 8:22

GoogleCodeExporter commented 8 years ago
Looks like this actually is a duplicate of #81.

Original comment by jo...@bergstroem.nu on 2 Dec 2011 at 2:06

GoogleCodeExporter commented 8 years ago

Original comment by eino.tuominen@gmail.com on 26 Mar 2012 at 5:44