Skip to content

Commit ebd1fd8

Browse files
committed
Fix interrogate warnings on Windows. Show warnings when running makepanda in verbose mode.
1 parent 155ae81 commit ebd1fd8

File tree

15 files changed

+82
-22
lines changed

15 files changed

+82
-22
lines changed

dtool/src/parser-inc/NxPhysics.h

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class NxCapsuleForceFieldShapeDesc;
3232
class NxCapsuleShape;
3333
class NxCapsuleShapeDesc;
3434
class NxCCDSkeleton;
35+
class NxContactStreamIterator;
3536
class NxConvexMesh;
3637
class NxConvexMeshDesc;
3738
class NxConvexForceFieldShape;
@@ -121,11 +122,16 @@ class NxSoftBodyDesc;
121122
class NxSoftBodyMesh;
122123
class NxSoftBodyMeshDesc;
123124

124-
enum NxSDKCreateError;
125-
enum NxAssertResponse;
126-
enum NxErrorCode;
127-
enum NxTriggerFlag;
128-
enum NxHeightFieldAxis;
125+
enum NxAssertResponse {
126+
NX_AR_CONTINUE,
127+
NX_AR_IGNORE,
128+
NX_AR_BREAKPOINT
129+
};
130+
131+
enum NxControllerType {
132+
NX_CONTROLLER_CAPSULE,
133+
NX_CONTROLLER_FORCE_DWORD = 0x7fffffff
134+
};
129135

130136
template<class T> class NxUserEntityReport;
131137

dtool/src/parser-inc/io.h

Whitespace-only changes.

dtool/src/parser-inc/minmax.h

Whitespace-only changes.

dtool/src/parser-inc/ode.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
#ifndef _ODE_CONFIG_H_
2020
#define _ODE_CONFIG_H_
2121

22-
#define dSINGLE 1
23-
#define ODE_PLATFORM_WINDOWS
22+
#define ODE_PLATFORM_WINDOWS
2423

2524
#if !defined(ODE_API)
2625
#define ODE_API

dtool/src/parser-inc/process.h

Whitespace-only changes.

dtool/src/parser-inc/sys/malloc.h

Whitespace-only changes.

dtool/src/parser-inc/sys/timeb.h

Whitespace-only changes.

dtool/src/parser-inc/windows.h

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,43 @@
2020
#ifndef WINDOWS_H
2121
#define WINDOWS_H
2222

23+
#include <wtypes.h>
24+
25+
#ifdef _WIN64
26+
typedef int HALF_PTR;
27+
typedef long long INT_PTR;
28+
typedef long long LONG_PTR;
29+
typedef unsigned long long UINT_PTR;
30+
typedef unsigned long long ULONG_PTR;
31+
#else
32+
typedef short HALF_PTR;
33+
typedef int INT_PTR;
34+
typedef long LONG_PTR;
35+
typedef unsigned int UINT_PTR;
36+
typedef unsigned long ULONG_PTR;
37+
#endif
38+
2339
// http://msdn.microsoft.com/en-us/library/cc230309.aspx
2440
typedef bool BOOL;
25-
typedef long DWORD;
41+
typedef unsigned long DWORD;
2642
typedef long LONG;
2743
typedef long UINT;
2844
typedef unsigned long ULONG;
29-
typedef signed long long LONGLONG;
45+
typedef long long LONGLONG;
3046
typedef long HRESULT;
3147
typedef int CRITICAL_SECTION;
32-
typedef int HANDLE;
33-
typedef int HGLOBAL;
34-
typedef int HWAVEIN;
3548
typedef void *LPSTR;
3649
typedef void *LPWAVEHDR;
50+
typedef void *PVOID;
3751
typedef void *LPVOID;
52+
typedef PVOID HANDLE;
53+
typedef HANDLE HGLOBAL;
54+
typedef HANDLE HWAVEIN;
55+
typedef HANDLE HWND;
3856
typedef void *DWORD_PTR;
39-
typedef unsigned short WCHAR;
57+
typedef UINT_PTR WPARAM;
58+
typedef LONG_PTR LPARAM;
59+
typedef wchar_t WCHAR;
4060
typedef WCHAR *BSTR;
4161
typedef struct _MediaType AM_MEDIA_TYPE;
4262
typedef struct _VIDEO_STREAM_CONFIG_CAPS VIDEO_STREAM_CONFIG_CAPS;
@@ -49,10 +69,6 @@ typedef struct _FILTERKEYS FILTERKEYS;
4969

5070
#define WINAPI
5171

52-
union LARGE_INTEGER {
53-
long long QuadPart;
54-
};
55-
5672
class IGraphBuilder;
5773
class ICaptureGraphBuilder2;
5874
class IBaseFilter;

dtool/src/parser-inc/winsock.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pragma once
2+
3+
struct timeval;

dtool/src/parser-inc/winsock2.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#define _WINSOCK2API_
33
#define _WINSOCKAPI_ /* Prevent inclusion of winsock.h in windows.h */
44

5-
typedef int SOCKET;
5+
#include <wtypes.h>
6+
7+
typedef unsigned long SOCKET;
68

79
struct sockaddr_in;
810

0 commit comments

Comments
 (0)