Changeset 2768 for trunk/synergy/lib/common
- Timestamp:
- Aug 20, 2006, 8:11:44 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/synergy/lib/common/BasicTypes.h
r2749 r2768 2 2 * synergy -- mouse and keyboard sharing utility 3 3 * Copyright (C) 2002 Chris Schoeneman 4 * 4 * 5 5 * This package is free software; you can redistribute it and/or 6 6 * modify it under the terms of the GNU General Public License 7 7 * found in the file COPYING that should have accompanied this file. 8 * 8 * 9 9 * This package is distributed in the hope that it will be useful, 10 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of … … 45 45 #endif 46 46 47 #if !defined(TYPE_OF_SIZE_8) 48 # ifdef _MSC_VER 49 # define TYPE_OF_SIZE_8 _int64 50 # else 51 # define TYPE_OF_SIZE_8 long long 52 # endif 53 #endif 54 47 55 // 48 56 // verify existence of required types … … 57 65 #if !defined(TYPE_OF_SIZE_4) 58 66 # error No 4 byte integer type 67 #endif 68 #if !defined(TYPE_OF_SIZE_8) 69 # error No 8 byte integer type 59 70 #endif 60 71 … … 71 82 typedef signed TYPE_OF_SIZE_2 SInt16; 72 83 typedef signed TYPE_OF_SIZE_4 SInt32; 84 typedef signed TYPE_OF_SIZE_8 SInt64; 73 85 74 86 typedef unsigned TYPE_OF_SIZE_1 UInt8; 75 87 typedef unsigned TYPE_OF_SIZE_2 UInt16; 76 88 typedef unsigned TYPE_OF_SIZE_4 UInt32; 89 typedef unsigned TYPE_OF_SIZE_8 UInt64; 77 90 78 91 // … … 83 96 #undef TYPE_OF_SIZE_2 84 97 #undef TYPE_OF_SIZE_4 98 #undef TYPE_OF_SIZE_8 85 99 86 100 #endif
Note:
See TracChangeset
for help on using the changeset viewer.