|
Rockbox mail archiveSubject: Re: settings.h and windows headers don't like each otherRe: settings.h and windows headers don't like each other
From: Hardeep Sidhu <hardeeps_at_pobox.com>
Date: Sat, 31 Jan 2004 10:33:38 -0800 [IDC]Dragon wrote: >since I gave the plugins access to the settings, the Win32 simulator is >broken. > >In settings.h, we define the following: >enum optiontype { INT, BOOL }; > >These IDs conflict with the typedefs in the windows header. "plugin.c" needs >the windows headers for the DLL loading, and now also the settings >definition, that's where both collides. >Any specific suggestions how to resolve that? I would just rename the enum >values (in several files), but maybe there's a smarter way. > > You can "#define BOOL win32_BOOL" and "#define INT win32_INT" just before including windows.h in plugin-win32.h. It's kludgy but so are many things in the win32 simulator. =) -Hardeep Received on 2004-01-31 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |