[go: up one dir, main page]

Menu

[r3]: / launchmenu / Misc.h  Maximize  Restore  History

Download this file

110 lines (92 with data), 2.9 kB

  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
/******************************************************************************/
/* */
/* Misc (C) by Gerhard W. Gruber in Vienna 2003 */
/* All rights reserved */
/* */
/******************************************************************************/
/******************************************************************************
*
* PROJECT: Misc definitions
* $Source: /cvsroot/launchmenu/LaunchMenu/Misc.h,v $
* $Revision: 1.3 $
* $Date: 2003/11/09 10:48:36 $
* $Author: lightweave $
* $Name: $
*
* $Log: Misc.h,v $
* Revision 1.3 2003/11/09 10:48:36 lightweave
* Fixes to make linux version work. In Detail:
* .) Added a window in linux.cpp which is aligned at the specified border.
*
* .) Added a timer that keeps the winod on top of all others (linux only).
*
* .) Changed ButtonUp to ButtonDown message. This will work nicer on linux and
* doesn't effect the Windows version.
*
* Revision 1.2 2003/10/04 22:01:14 lightweave
* Modifications for compiling the sources under Linux.
*
* Revision 1.1.1.1 2003/10/04 17:13:12 lightweave
* Initial Release to CVS.
*
*
*****************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef _MISC_H
#define _MISC_H
#ifndef LONG
#define LONG signed long
#endif
#ifndef ULONG
#define ULONG unsigned long
#endif
#ifndef WORD
#define WORD signed short
#endif
#ifndef UWORD
#define UWORD unsigned short
#endif
#ifndef UBYTE
#define UBYTE unsigned char
#endif
#ifndef BYTE
#define BYTE signed char
#endif
#undef BOOL
#ifndef BOOL
#ifdef __cplusplus
#define BOOL bool
#else
#define BOOL int
#endif
#endif
#ifndef TRUE
#ifdef __cplusplus
#define TRUE true
#else
#define TRUE ((int)1)
#endif
#endif
#ifndef FALSE
#ifdef __cplusplus
#define FALSE false
#else
#define FALSE ((int)0)
#endif
#endif
#ifndef NULL
#define NULL 0L
#endif
#define PTR_SIZE sizeof(void *)
#ifdef _LINUX_
#define stricmp strcasecmp
#define chsize ftruncate
#endif
#endif // _MISC_H