gecube / opencaesar3

opencaesar3 fork from sourceforge
Other
139 stars 33 forks source link

Fix build errors #160

Closed AMDmi3 closed 11 years ago

AMDmi3 commented 11 years ago

Fix build errors generated by gcc 7 and clang on FreeBSD/amd64

98cf06e should be checked for whether selected type (int) is long enough (long long may be required instead).

AMDmi3 commented 11 years ago

Thanks! Playtesting on FreeBSD pending.

gecube commented 11 years ago

@AMDmi3 Спасибо, Дмитрий 8-) А какой версии там сейчас компилятор gcc во фряхе?

/What gcc compiler version do you use?/

AMDmi3 commented 11 years ago

Base system has outdated gcc 4.2.1, but I've built it with 4.7.4, 4.8.1 and clang as well. All compilers pretty much require all these fixes, except for newer gcc which is permissive to BOMs. With changes in this pull request, it builds with all named compilers.