OpendTect  6.3
plftypes.h
Go to the documentation of this file.
1 #pragma once
2 
3 /*
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: A.H.Bril
8  Contents: Platform dependent types
9 ________________________________________________________________________
10 
11 */
12 
13 #include "plfdefs.h"
14 
15 #ifdef __sun__
16 # include <sys/types.h>
17 #else
18 # ifndef __msvc__
19 # include <stdint.h>
20 # endif
21 
22 #endif
23 
24 /* 16 bits short is standard. Only use to emphasise the 16-bitness */
25 #define od_int16 short
26 #define od_uint16 unsigned short
27 
28 /* 32 bits int is standard. Only use to emphasise the 32-bitness */
29 #define od_int32 int
30 #define od_uint32 unsigned int
31 
32 /* 64 bits is int64_t. The definition is in various header files. */
33 #ifndef __msvc__
34 # define od_int64 int64_t
35 # define od_uint64 uint64_t
36 #else
37 # define od_int64 __int64
38 # define od_uint64 unsigned __int64
39 #endif

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017