Skip to content

Commit

Permalink
Remove intrinsics.h from always.h to speed up compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon committed Feb 15, 2024
1 parent c0efefe commit a282d13
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion deps/baseconfig/src/always.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include "bittype.h"
#include "compiler.h"
#include "intrinsics.h"
#include "macros.h"
#include "platform.h"
#include "stringex.h"
Expand Down
1 change: 1 addition & 0 deletions src/w3d/lib/cpudetect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* LICENSE
*/
#include "cpudetect.h"
#include "intrinsics.h"
#include "systimer.h"
#include <cstdio>
#include <cstring>
Expand Down
1 change: 1 addition & 0 deletions src/w3d/lib/mpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* LICENSE
*/
#include "mpu.h"
#include "intrinsics.h"

unsigned long Get_CPU_Clock(unsigned long &high)
{
Expand Down
4 changes: 4 additions & 0 deletions src/w3d/lib/rcfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#include "rcfile.h"

#ifdef PLATFORM_WINDOWS

#include <cstdlib>

RCFileClass::RCFileClass(HMODULE module, const char *name) :
m_name(nullptr), m_unk(0), m_startPointer(nullptr), m_currentPointer(nullptr), m_endPointer(nullptr)
{
Expand Down Expand Up @@ -104,4 +107,5 @@ off_t RCFileClass::Seek(off_t offset, int whence)

return m_currentPointer - m_startPointer;
}

#endif

0 comments on commit a282d13

Please sign in to comment.