13
0
Commit Graph

10715 Commits

Author SHA1 Message Date
e8ecd32732 Add test for Glib::Mutex::trylock
Behaviour of this method is different on WIN32
2013-07-13 17:00:18 -04:00
6542ce76d0 Don't use trylock in assertions on windows as it will fail
glib uses TryEnterCriticalSection on windows which will return true
if the lock as able to be locked *or* is already locked by the current
thread.
2013-07-13 16:57:04 -04:00
1fd2412f5b Add config/data filesystem paths to search on windows 2013-07-13 16:56:12 -04:00
ccdc6fcd6a Add DEBUG_TRACE output to file utility functions in libpbd 2013-07-13 16:55:40 -04:00
550eeecc63 Add header include required by mingw compiler 2013-07-13 16:44:59 -04:00
48f8863b2c Use g_mkstemp in audiographer for portability 2013-07-13 16:44:37 -04:00
3be0f0aa0b Use pthread_name instead of pthread_self for portability 2013-07-13 16:44:03 -04:00
57066732ca Use pthread_name instead of pthread_self for portability 2013-07-13 16:43:50 -04:00
40f49b85ac Work around DELETE defined via windows.h 2013-07-13 08:45:27 -04:00
ad89d1e031 Use custom comparator in threadmap for pthread impl with mingw 2013-07-13 08:44:58 -04:00
18b5019385 disable pingback on win32, until we have a replacement for utsname stuff (system ID) 2013-07-13 08:38:17 -04:00
9db936ac26 Don't call pango_ft2* functions on windows 2013-07-13 08:30:27 -04:00
5dca8270eb Use PBD::GlibSemaphore on windows to signal peak 2013-07-13 08:27:56 -04:00
eddcc868ba Disable non-realtime midi ports in windows build - THIS NEEDS FIXING 2013-07-13 08:26:54 -04:00
a0ada1f233 Assume no filesystem links on windows 2013-07-13 08:20:45 -04:00
745501b6f3 Fix for small identifier being defined on windows/mingw 2013-07-13 08:20:01 -04:00
aa4dd3443f Include pbd/timersub.h for mingw build 2013-07-13 08:19:32 -04:00
ff825cd8bd Include pbd/localtime_r.h for mingw build 2013-07-13 08:19:03 -04:00
e4ab2ffbfb Don't install signal handler for SIGPIPE in windows 2013-07-11 22:34:59 -04:00
f3858b1932 undef SearchPath where needed as it is defined via windows.h 2013-07-11 22:34:16 -04:00
981e7e7fbb Use Glib::usleep in export_dialog.cc for portability 2013-07-11 22:07:25 -04:00
32320ec31d Add windows equivalent of hack in timefx 2013-07-11 22:06:20 -04:00
aa29b3b44c Work around DELETE defined via windows.h 2013-07-11 22:05:06 -04:00
c08b336292 Fix ambiguous type CheckMenuItem that is also defined via windows.h 2013-07-11 15:32:31 -04:00
5cafb98983 Work around badly chosen argument name in giomm/dbusmessage.h
interface is defined in windows/mingw headers. hopefully this will
be fixed in giomm at some point and this crap can be removed
2013-07-11 15:29:28 -04:00
01ed4f3388 undef SearchPath where needed as it is defined via windows.h 2013-07-11 15:24:36 -04:00
167e8bbc2f Include pbd/localtime_r.h for mingw build 2013-07-11 15:23:12 -04:00
32f4d7787e Change/improve enum as IN and OUT are defined via windows.h 2013-07-11 15:22:33 -04:00
029c530203 Disable checking for memory locking support on windows
not sure if this is needed on windows, can implement later in PBD
2013-07-11 15:18:31 -04:00
f80859f3bd Use uint32_t type instead of uint 2013-07-11 15:16:50 -04:00
b8c369fe2d Include pbd/timersub.h for mingw build 2013-07-11 15:16:11 -04:00
965883bc22 Use Glib functions to create tmp file path 2013-07-11 15:15:40 -04:00
ef3ea6c6a6 Work around badly chosen argument name in giomm/dbusmessage.h
interface is defined in windows/mingw headers. hopefully this will
be fixed in giomm at some point and this crap can be removed
2013-07-11 15:14:51 -04:00
abd478d1c8 Include pthread.h in butler.h for mingw build
Jack2 on windows doesn't include pthread headers so it is necessary
to include them explicitly.
2013-07-11 15:11:22 -04:00
9f7e293c3b Use Glib::usleep for portability 2013-07-11 15:10:10 -04:00
01a4c3186a Use PBD::pthread_name in debug output for portability 2013-07-11 15:09:29 -04:00
2b93c878d0 Disable some non-portable code that is only used for debugging 2013-07-11 15:08:47 -04:00
fa2dcea820 Use jack_native_thread_t for portability
Requires future attention in AudioEngine due to timbyr's use JACK2 extension to JACK API
2013-07-11 15:08:10 -04:00
a69847b671 Include pbd/localtime_r.h for mingw build 2013-07-11 15:00:56 -04:00
c43ff1113d Add ::localtime_r implementation for mingw 2013-07-11 15:00:22 -04:00
5d125e1eae Use PBD::pthread_name in debug output 2013-07-11 14:58:00 -04:00
09e471545b remove direct of realpath(2), replace with canonical_path() which is a no-op on windows 2013-07-11 14:57:16 -04:00
2ddab2d2f6 Use PBD::GlibSemaphore in Butler to signal requests on windows 2013-07-11 14:41:08 -04:00
29f178aa4b Add PBD::GlibSemaphore class that uses PBD::atomic_counter etc.
PBD::Semaphore can really be used instead of this class now,
but it didn't exist when I needed this class and it is header only, which
causes some problems because windows.h is included
2013-07-11 14:38:53 -04:00
57f3ba6a1f Add wrapping class for glib atomic counter 2013-07-11 14:37:27 -04:00
dd55df80f0 Refactor the non-portable parts of Butler thread into new functions 2013-07-11 14:36:43 -04:00
0f1ed673d0 Move request pipe setup into separate function 2013-07-11 14:35:26 -04:00
6a8901eb8d Include pbd/timersub.h in session_midi.cc 2013-07-11 14:31:15 -04:00
2218a70d37 Add timersub macro for platforms where it isn't defined 2013-07-11 14:30:38 -04:00
b6afce39a4 Undef SearchPath where needed as it is defined via windows.h
This is pretty annoying, might even be worth renaming the class
2013-07-11 14:27:24 -04:00