Only apply alignment fix when including openvr api

This commit is contained in:
3snow p7im 2018-04-22 18:22:40 -07:00
parent 2bfba10f81
commit 69cf13f4ae
2 changed files with 6 additions and 4 deletions

View File

@ -5,10 +5,6 @@
#pragma once
#ifndef WIN32
#pragma pack(push, 4)
#endif
typedef enum {
EYE_LEFT,
EYE_RIGHT

View File

@ -9,7 +9,13 @@
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#ifndef WIN32
#pragma pack(push, 4)
#endif
#include <openvr_capi.h>
#ifndef WIN32
#pragma pack(pop)
#endif
// From openvr_capi.h
extern intptr_t VR_InitInternal(EVRInitError *peError, EVRApplicationType eType);