Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SbTypes.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23/*
24 * Module: inttypes.h
25 */
26
27#ifndef __oiv_inttypes_h__
28#define __oiv_inttypes_h__
29
30#if defined(_WIN32) /* Microsoft WINxx */
31# if !defined(WIN32)
32# define WIN32
33# endif
34# if defined(_WIN64)
35# if !defined(WIN64)
36# define WIN64
37# endif
38# endif
39#endif
40
41#ifdef _WIN32 /* Microsoft WINxx */
42typedef signed __int8 int8_t;
43typedef unsigned __int8 uint8_t;
44typedef signed __int16 int16_t;
45typedef unsigned __int16 uint16_t;
46typedef signed __int32 int32_t;
47typedef unsigned __int32 uint32_t;
48typedef signed __int64 int64_t;
49typedef unsigned __int64 uint64_t;
50
51#define SO_WCHAR_T unsigned short
52# define INT64FMT "%I64d"
53
54#elif defined (__linux__) || defined(__APPLE__) /* Linux or Mac */
55/*typedef unsigned int uint32_t; already defined in /usr/include/stdint.h */
56# include <stdint.h>
57#endif
58
59#ifndef _WIN32 /* UNIX */
60#define SO_WCHAR_T wchar_t
61
62#if defined(__GNUC__) && defined(__LP64__) && (__LP64__ == 1)
63# define INT64FMT "%ld"
64#else
65# define INT64FMT "%lld"
66#endif
67#endif
68
69#if defined(_WIN64) || _MSC_VER >= 1300
70/* nothing */
71#elif defined(_WIN32) && !defined(_WIN64) && _MSC_VER < 1300 /* Visual C++ 6.0 */
72typedef unsigned uintptr_t;
73typedef unsigned long DWORD_PTR;
74typedef signed int intptr_t;
75#elif defined(__linux__)
76/* Linux || HPUX 11.x || SGI O32 || AIX 32 */
77typedef unsigned long DWORD_PTR;
78#else
79typedef unsigned long DWORD_PTR;
80#endif
81
82#if defined(_WIN32) && !defined(_WIN64) && _MSC_VER < 1300
83# ifndef SetWindowLongPtr
84# define SetWindowLongPtr SetWindowLong
85# endif
86# ifndef GetWindowLongPtr
87# define GetWindowLongPtr GetWindowLong
88# endif
89# ifndef LONG_PTR
90# define LONG_PTR LONG
91# endif
92# ifndef GWLP_HINSTANCE
93# define GWLP_HINSTANCE GWL_HINSTANCE
94# endif
95# ifndef GWLP_WNDPROC
96# define GWLP_WNDPROC GWL_WNDPROC
97# endif
98# ifndef GWLP_USERDATA
99# define GWLP_USERDATA GWL_USERDATA
100# endif
101# ifndef DWLP_USER
102# define DWLP_USER DWL_USER
103# endif
104#endif
105
106#endif /* __oiv_inttypes_h__ */
107
unsigned long DWORD_PTR
Definition SbTypes.h:79