Need to include <xnamath> in two diffrent cpp file what to do?

Hi,
I have a simple header, but its use stuffs from the XNAMATH header, so I included it in my main.cpp. but now that I need to include the header into another cpp file, but it gives me tons of error when I try to compile it. am guessing the problem is that by including xnamath twice same thing gets defined twice which creates these bunch of error's. but how am suppose to use my header which require xnamath without include xnamath twice?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef CameraHandle_H
#define CameraHandle_H
class Camera
{
	struct Transform
	{
		XMVECTOR Position;
	};

	public:
	Transform Transform;
	XMMATRIX View;
	XMMATRIX Projection;
	XMVECTOR Target;
	XMVECTOR Up;

	Camera(){};

};	


#endif 
Topic archived. No new replies allowed.