Redefinition of 'SelectIntPointerType'

I get a weird error when compiling on Mac, but not on Windows:

In file included from Runtime/Core/Public/HAL/Platform.h:90:
/Users/Shared/UnrealEngine/4.10/Runtime/Core/Public/GenericPlatform/GenericPlatform.h:11:8: Redefinition of 'SelectIntPointerType'
struct SelectIntPointerType
       ^
/Users/robert/3rdParty/UnrealEngine/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatform.h:11:8:       Previous definition is here
struct SelectIntPointerType
       ^

The reason was in my MyGame.h file, I decided to use #pragma once, and that works on Windows, but on Mac for this one file only you must use defines. In the other header files, it’s ok to use #pragma once in XCode on most files.

#ifndef __MY_GAME_H__
#define __MY_GAME_H__

#include "EngineMinimal.h"

#endif