KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
msvc-compat.h
Go to the documentation of this file.
1 /* =========================================================================== *
2  |
3  | Copyright (c) 1994-2011 by Kobus Barnard (author)
4  |
5  | Personal and educational use of this code is granted, provided that this
6  | header is kept intact, and that the authorship is not misrepresented, that
7  | its use is acknowledged in publications, and relevant papers are cited.
8  |
9  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
10  |
11  | Please note that the code in this file has not necessarily been adequately
12  | tested. Naturally, there is no guarantee of performance, support, or fitness
13  | for any particular task. Nonetheless, I am interested in hearing about
14  | problems that you encounter.
15  |
16  | Author: Jinyan Guan
17  * =========================================================================== */
18 
19 /* $Id: msvc-compat.h 14469 2013-05-20 05:06:14Z jguan1 $ */
20 
21 #ifndef FLANDMAR_MSVC_COMPAT
22 #define FLANDMAR_MSVC_COMPAT
23 #ifdef FLANDMAR_MSC_VER
24 
25 namespace kjb {
26 namespace flandmark {
27 
28 typedef unsigned char uint8_t;
29 typedef char int8_t;
30 typedef unsigned __int16 uint16_t;
31 typedef __int16 int16_t;
32 typedef unsigned __int32 uint32_t;
33 typedef __int32 int32_t;
34 typedef unsigned __int64 uint64_t;
35 typedef __int64 int64_t;
36 
37 }} //namespace kjb::flandmark
38 
39 #else
40 # include <stdint.h>
41 #endif
42 
43 #endif