Skip to content

Commit

Permalink
xrCore/vector4: platform header used to abstract from compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Nov 6, 2015
1 parent d3dc452 commit f4ae18e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/xrCore/_vector4.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#define _VECTOR4_H
#pragma once

#include "Platform.h"

template <class T>
struct _vector4
{
Expand Down Expand Up @@ -63,9 +65,9 @@ typedef _vector4<float> Fvector4;
typedef _vector4<double> Dvector4;
typedef _vector4<s32> Ivector4;
#ifndef __BORLANDC__
typedef __declspec(align(16)) _vector4<float> Fvector4a;
typedef __declspec(align(16)) _vector4<double> Dvector4a;
typedef __declspec(align(16)) _vector4<s32> Ivector4a;
typedef ALIGN(16) _vector4<float> Fvector4a;
typedef ALIGN(16) _vector4<double> Dvector4a;
typedef ALIGN(16) _vector4<s32> Ivector4a;
#endif

template <class T>
Expand Down

0 comments on commit f4ae18e

Please sign in to comment.