Commit | Line | Data |
---|---|---|
ef79bbde P |
1 | /*************************************************************************** |
2 | StdAfx.h - description | |
3 | ------------------- | |
4 | begin : Wed May 15 2002 | |
5 | copyright : (C) 2002 by Pete Bernert | |
6 | email : BlackDove@addcom.de | |
7 | ***************************************************************************/ | |
8 | /*************************************************************************** | |
9 | * * | |
10 | * This program is free software; you can redistribute it and/or modify * | |
11 | * it under the terms of the GNU General Public License as published by * | |
12 | * the Free Software Foundation; either version 2 of the License, or * | |
13 | * (at your option) any later version. See also the license.txt file for * | |
14 | * additional informations. * | |
15 | * * | |
16 | ***************************************************************************/ | |
17 | ||
908e426c | 18 | #ifndef __P_STDAFX_H__ |
19 | #define __P_STDAFX_H__ | |
20 | ||
ef79bbde P |
21 | #include <stdio.h> |
22 | #include <stdlib.h> | |
ef79bbde | 23 | #include <string.h> |
ef79bbde P |
24 | |
25 | #undef CALLBACK | |
26 | #define CALLBACK | |
c668f248 | 27 | #define DWORD unsigned int |
003cfc63 | 28 | #define LOWORD(l) ((unsigned short)(l)) |
29 | #define HIWORD(l) ((unsigned short)(((unsigned int)(l) >> 16) & 0xFFFF)) | |
ef79bbde P |
30 | |
31 | #ifndef INLINE | |
6d866bb7 | 32 | #define INLINE static inline |
ef79bbde P |
33 | #endif |
34 | ||
740eb9bc | 35 | #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ |
36 | #define HTOLE16(x) __builtin_bswap16(x) | |
37 | #define LE16TOH(x) __builtin_bswap16(x) | |
38 | #else | |
39 | #define HTOLE16(x) (x) | |
40 | #define LE16TOH(x) (x) | |
41 | #endif | |
42 | ||
ef79bbde | 43 | #include "psemuxa.h" |
908e426c | 44 | |
45 | #endif /* __P_STDAFX_H__ */ |