mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-04-06 23:42:55 +02:00
Compiling fix for scons on windows
something is up with the pthreads library (dynamic compiles still broken), probably windows libraries all need to be recompiled and distributed separately like I did for visual studio
This commit is contained in:
parent
1ef8b0c08b
commit
13d3547211
@ -174,12 +174,6 @@
|
||||
#define TPT_INLINE inline
|
||||
#endif
|
||||
|
||||
#if defined(WIN) && defined(__GNUC__)
|
||||
#define TH_ENTRY_POINT __attribute__((force_align_arg_pointer))
|
||||
#else
|
||||
#define TH_ENTRY_POINT
|
||||
#endif
|
||||
|
||||
// old Platform.h stuff, maybe we should have a file for these kinds of things
|
||||
typedef unsigned short Uint16;
|
||||
|
||||
|
@ -4,8 +4,7 @@
|
||||
#include <utility>
|
||||
#include <deque>
|
||||
#include <string>
|
||||
#include <pthread.h>
|
||||
#undef GetUserName //God dammit microsoft!
|
||||
#include "common/tpt-thread.h"
|
||||
|
||||
#include "Config.h"
|
||||
#include "Singleton.h"
|
||||
|
14
src/common/tpt-thread.h
Normal file
14
src/common/tpt-thread.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef TPT_THREAD_H
|
||||
#define TPT_THREAD_H
|
||||
|
||||
#if defined(WIN) && defined(__GNUC__)
|
||||
#define TH_ENTRY_POINT __attribute__((force_align_arg_pointer))
|
||||
#define _TIMESPEC_DEFINED
|
||||
#else
|
||||
#define TH_ENTRY_POINT
|
||||
#endif
|
||||
|
||||
#include <pthread.h>
|
||||
#undef GetUserName
|
||||
|
||||
#endif
|
@ -1,9 +1,6 @@
|
||||
#include "Graphics.h"
|
||||
#include "font.h"
|
||||
#include <pthread.h>
|
||||
#ifdef GetUserName
|
||||
#undef GetUserName //God dammit microsoft!
|
||||
#endif
|
||||
#include "common/tpt-thread.h"
|
||||
#ifdef OGLI
|
||||
|
||||
static pthread_mutex_t gMutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
@ -3,8 +3,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
#include <pthread.h>
|
||||
#undef GetUserName //God dammit microsoft!
|
||||
#include "common/tpt-thread.h"
|
||||
#include "PreviewView.h"
|
||||
#include "client/SaveInfo.h"
|
||||
#include "gui/preview/Comment.h"
|
||||
|
@ -3,8 +3,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <pthread.h>
|
||||
#undef GetUserName //God dammit microsoft!
|
||||
#include "common/tpt-thread.h"
|
||||
#include <cmath>
|
||||
#include "client/SaveInfo.h"
|
||||
#include "SearchView.h"
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include <cmath>
|
||||
#include <sys/types.h>
|
||||
#include <pthread.h>
|
||||
#undef GetUserName //God dammit microsoft!
|
||||
#include "common/tpt-thread.h"
|
||||
#include "Config.h"
|
||||
#include "Gravity.h"
|
||||
//#include "powder.h"
|
||||
|
@ -1,8 +1,7 @@
|
||||
#ifndef GRAVITY_H
|
||||
#define GRAVITY_H
|
||||
|
||||
#include <pthread.h>
|
||||
#undef GetUserName //God dammit microsoft!
|
||||
#include "common/tpt-thread.h"
|
||||
#include "Config.h"
|
||||
#include "Simulation.h"
|
||||
|
||||
|
@ -2,8 +2,7 @@
|
||||
#define TASK_H_
|
||||
|
||||
#include <string>
|
||||
#include <pthread.h>
|
||||
#undef GetUserName //God dammit microsoft!
|
||||
#include "common/tpt-thread.h"s
|
||||
#include "TaskListener.h"
|
||||
#include "Config.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user