Lameguy64 / img2tim

An Image to PlayStation TIM File Converter
GNU General Public License v3.0
49 stars 9 forks source link

Support BSD/UNIX compilation targets #5

Open EngineersBox opened 6 months ago

EngineersBox commented 6 months ago

Currently, we expect type definitions to be present through windows.h for windows, however on BSD/UNIX systems, they are not available from here. Neither will they be visible through math.h or stdio.h.

To support BSD/UNIX systems, a simple switch is introduced to allow for inclusion of sys/types.h. Additionally, a CMake target is supplied for ease of building using PkgConfig to resolve dependencies.