ericoporto / agsjoy

[reverse engineered edition] Joystick for Adventure Game Studio in Linux. libagsjoy written by qptain_Nemo, for Linux, compatible with Wyz agsjoy.
MIT License
1 stars 1 forks source link

simplify windows and linux code to one #2

Closed ericoporto closed 6 years ago

ericoporto commented 6 years ago

Use ifdefs to make the builds for Windows and Linux (something like below):

#ifdef __linux__ 
    //linux code goes here
#elif _WIN32
    // windows code goes here
#else

#endif
ericoporto commented 6 years ago

Done in e35e6b94 .