/usr/include/allegro5/platform/alwin.h is in liballegro5-dev 2:5.2.3.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | /* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
* \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
* /\____/
* \_/__/
*
* Windows-specific header defines.
*
* By Shawn Hargreaves.
*
* See readme.txt for copyright information.
*/
#ifndef ALLEGRO_WINDOWS
#error bad include
#endif
/*******************************************/
/********** 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',' ',' ')
#ifdef __cplusplus
extern "C" {
#endif
AL_VAR(struct ALLEGRO_JOYSTICK_DRIVER, _al_joydrv_directx);
#ifdef __cplusplus
}
#endif
#define _AL_JOYSTICK_DRIVER_DIRECTX \
{ AL_JOY_TYPE_DIRECTX, &_al_joydrv_directx, true },
#define AL_JOY_TYPE_XINPUT AL_ID('X','I',' ',' ')
#ifdef __cplusplus
extern "C" {
#endif
AL_VAR(struct ALLEGRO_JOYSTICK_DRIVER, _al_joydrv_xinput);
#ifdef __cplusplus
}
#endif
#define _AL_JOYSTICK_DRIVER_XINPUT \
{ AL_JOY_TYPE_XINPUT, &_al_joydrv_xinput, true },
#define AL_JOY_TYPE_WINDOWS_ALL AL_ID('X','D',' ',' ')
#ifdef __cplusplus
extern "C" {
#endif
AL_VAR(struct ALLEGRO_JOYSTICK_DRIVER, _al_joydrv_windows_all);
#ifdef __cplusplus
}
#endif
#define _AL_JOYSTICK_DRIVER_WINDOWS_ALL \
{ AL_JOY_TYPE_WINDOWS_ALL, &_al_joydrv_windows_all, true },
/*******************************************/
/************ haptic drivers *************/
/*******************************************/
#define AL_HAPTIC_TYPE_DIRECTX AL_ID('D','X','F','F')
#ifdef __cplusplus
extern "C" {
#endif
AL_VAR(struct ALLEGRO_HAPTIC_DRIVER, _al_hapdrv_directx);
#ifdef __cplusplus
}
#endif
#define _AL_HAPTIC_DRIVER_DIRECTX \
{ AL_HAPTIC_TYPE_DIRECTX, &_al_hapdrv_directx, true },
#define AL_HAPTIC_TYPE_XINPUT AL_ID('X','I','F','F')
#ifdef __cplusplus
extern "C" {
#endif
AL_VAR(struct ALLEGRO_HAPTIC_DRIVER, _al_hapdrv_xinput);
#ifdef __cplusplus
}
#endif
#define _AL_HAPTIC_DRIVER_XINPUT \
{ AL_HAPTIC_TYPE_XINPUT, &_al_hapdrv_xinput, true },
#define AL_HAPTIC_TYPE_WINDOWS_ALL AL_ID('X','D','F','F')
#ifdef __cplusplus
extern "C" {
#endif
AL_VAR(struct ALLEGRO_HAPTIC_DRIVER, _al_hapdrv_windows_all);
#ifdef __cplusplus
}
#endif
#define _AL_HAPTIC_DRIVER_WINDOWS_ALL \
{ AL_HAPTIC_TYPE_WINDOWS_ALL, &_al_hapdrv_windows_all, true },
|