Openrct2: My mac compiler doesn't like intptr_t

Created on 27 May 2014  Â·  1Comment  Â·  Source: OpenRCT2/OpenRCT2

I'm using i586-mingw32-gcc to compile the game and it doesn't like last night's change to window_options.c

/Users/kevin/code/OpenRCT2/src/window_options.c: In function ‘window_options_mousedown’:
/Users/kevin/code/OpenRCT2/src/window_options.c:312:45: error: ‘intptr_t’ undeclared (first use in this function)
    gDropdownItemsArgs[i] = 1170 | ((uint64)(intptr_t)gAudioDevices[i].name << 16);
                                             ^
/Users/kevin/code/OpenRCT2/src/window_options.c:312:45: note: each undeclared identifier is reported only once for each function it appears in
/Users/kevin/code/OpenRCT2/src/window_options.c:312:54: error: expected ‘)’ before ‘gAudioDevices’
    gDropdownItemsArgs[i] = 1170 | ((uint64)(intptr_t)gAudioDevices[i].name << 16);

Let me know if there's a good workaround or fix here.

Most helpful comment

Eh, scratch that, was able to fix it by adding #include <stdint.h> at the top of the file.

>All comments

Eh, scratch that, was able to fix it by adding #include <stdint.h> at the top of the file.

Was this page helpful?
0 / 5 - 0 ratings