VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfintPtrDefine.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 #include <string>
11 #include <cstdio>
12 
14 #if WIN32 && _MSC_VER == 1400
15 
16 #ifndef _INTPTR_T_DEFINED
17  #define _INTPTR_T_DEFINED
18  #ifdef _WIN64
19 typedef __int64 intptr_t;
20  #else /* _WIN64 */
21 typedef _W64 int intptr_t;
22  #endif /* _WIN64 */
23 #endif /* _INTPTR_T_DEFINED */
24 
25 #ifndef _UINTPTR_T_DEFINED
26  #define _UINTPTR_T_DEFINED
27  #ifdef _WIN64
28 typedef unsigned __int64 uintptr_t;
29  #else /* _WIN64 */
30 typedef _W64 unsigned int uintptr_t;
31  #endif /* _WIN64 */
32 #endif /* _UINTPTR_T_DEFINED */
33 
34 #else
35 #include <stdint.h>
36 #endif
37 
38 //A simple utility function to convert a intptr_t to a std::string
39 static std::string intPtrToKey(intptr_t t)
40 {
41  char buf[256];
42 
43  sprintf(buf, "%Id", t);
44 
45  return buf;
46 }
static std::string intPtrToKey(intptr_t t)
MSVC 2005 does not define intptr_t or uintptr_t so we define it here.
Definition: vrfintPtrDefine.h:39
voidpf void * buf
Definition: ioapi.h:39

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)