/* ______ ___ ___ * /\ _ \ /\_ \ /\_ \ * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ * \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/ * \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/ * /\____/ * \_/__/ * * Windows-specific header defines. * * By Shawn Hargreaves. * * See readme.txt for copyright information. */ #ifndef ALLEGRO_WINDOWS #error bad include #endif #include /*******************************************/ /********** magic main emulation ***********/ /*******************************************/ #ifdef __cplusplus extern "C" { #endif AL_FUNC(int, _WinMain, (void *_main, void *hInst, void *hPrev, char *Cmd, int nShow)); #ifdef __cplusplus } #endif /* The following is due to torhu from A.cc (see * http://www.allegro.cc/forums/thread/596872/756993#target) */ #ifndef ALLEGRO_NO_MAGIC_MAIN #if defined _MSC_VER && !defined ALLEGRO_LIB_BUILD #pragma comment(linker,"/ENTRY:mainCRTStartup") #endif #endif /*******************************************/ /************ joystick drivers *************/ /*******************************************/ #define AL_JOY_TYPE_DIRECTX AL_ID('D','X',' ',' ') AL_VAR(struct ALLEGRO_JOYSTICK_DRIVER, _al_joydrv_directx); #define _AL_JOYSTICK_DRIVER_DIRECTX \ { AL_JOY_TYPE_DIRECTX, &_al_joydrv_directx, true },