Browse Source

Compiles again on Windows.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4678 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.9.9.5
sletz 13 years ago
parent
commit
9c6afc5157
9 changed files with 18 additions and 11 deletions
  1. +2
    -2
      common/JackDriverLoader.cpp
  2. +1
    -1
      common/JackNetOneDriver.cpp
  3. +2
    -1
      common/jack/control.h
  4. +2
    -2
      common/netjack_packet.c
  5. +1
    -1
      example-clients/midi_latency_test.c
  6. +6
    -0
      windows/jackd.cbp
  7. +0
    -2
      windows/winmme/JackWinMMEDriver.cpp
  8. +3
    -1
      windows/winmme/JackWinMMEInputPort.cpp
  9. +1
    -1
      windows/winmme/JackWinMMEPort.cpp

+ 2
- 2
common/JackDriverLoader.cpp View File

@@ -70,7 +70,7 @@ static char* locate_system_driver_dir()
} }
} }


static char* locate_driver_dir(HANDLE file&, WIN32_FIND_DATA& filedata)
static char* locate_driver_dir(HANDLE& file, WIN32_FIND_DATA& filedata)
{ {
char dll_filename[512]; char dll_filename[512];


@@ -450,7 +450,7 @@ static void* check_symbol(const char* sofile, const char* symbol, const char* dr
jack_error ("Could not open component .so '%s': %s", filename, dlerror()); jack_error ("Could not open component .so '%s': %s", filename, dlerror());
#endif #endif
} else { } else {
res = GetDriverProc(dlhandle, symbol);
res = (void*)GetDriverProc(dlhandle, symbol);
if (res_dllhandle) { if (res_dllhandle) {
*res_dllhandle = dlhandle; *res_dllhandle = dlhandle;
} else { } else {


+ 1
- 1
common/JackNetOneDriver.cpp View File

@@ -56,7 +56,7 @@ JackNetOneDriver::JackNetOneDriver(const char* name, const char* alias, JackLock


#ifdef WIN32 #ifdef WIN32
WSADATA wsa; WSADATA wsa;
int rc = WSAStartup(MAKEWORD(2, 0), &wsa);
WSAStartup(MAKEWORD(2, 0), &wsa);
#endif #endif


netjack_init(& (this->netj), netjack_init(& (this->netj),


+ 2
- 1
common/jack/control.h View File

@@ -28,7 +28,8 @@


#ifndef JACKCTL_H__2EEDAD78_DF4C_4B26_83B7_4FF1A446A47E__INCLUDED #ifndef JACKCTL_H__2EEDAD78_DF4C_4B26_83B7_4FF1A446A47E__INCLUDED
#define JACKCTL_H__2EEDAD78_DF4C_4B26_83B7_4FF1A446A47E__INCLUDED #define JACKCTL_H__2EEDAD78_DF4C_4B26_83B7_4FF1A446A47E__INCLUDED

#include <types.h>
#include <jack/jslist.h> #include <jack/jslist.h>
#include <jack/systemdeps.h> #include <jack/systemdeps.h>
#if !defined(sun) && !defined(__sun__) #if !defined(sun) && !defined(__sun__)


+ 2
- 2
common/netjack_packet.c View File

@@ -505,11 +505,11 @@ packet_cache_drain_socket( packet_cache *pcache, int sockfd )
cache_packet *cpack; cache_packet *cpack;
struct sockaddr_in sender_address; struct sockaddr_in sender_address;
#ifdef WIN32 #ifdef WIN32
size_t senderlen = sizeof( struct sockaddr_in );
int senderlen = sizeof( struct sockaddr_in );
u_long parm = 1; u_long parm = 1;
ioctlsocket( sockfd, FIONBIO, &parm ); ioctlsocket( sockfd, FIONBIO, &parm );
#else #else
socklen_t senderlen = sizeof( struct sockaddr_in );
int senderlen = sizeof( struct sockaddr_in );
#endif #endif
while (1) { while (1) {
#ifdef WIN32 #ifdef WIN32


+ 1
- 1
example-clients/midi_latency_test.c View File

@@ -214,7 +214,7 @@ get_semaphore_error(void)
if (! FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, error, if (! FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, error,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
semaphore_error_msg, 1024, NULL)) { semaphore_error_msg, 1024, NULL)) {
snprintf(semaphore_error_msg, 1023, "Unknown OS error code '%d'",
snprintf(semaphore_error_msg, 1023, "Unknown OS error code '%ld'",
error); error);
} }
return semaphore_error_msg; return semaphore_error_msg;


+ 6
- 0
windows/jackd.cbp View File

@@ -21,6 +21,7 @@
<Add option="-DNDEBUG" /> <Add option="-DNDEBUG" />
<Add option="-D_WINDOWS" /> <Add option="-D_WINDOWS" />
<Add option="-D_MBCS" /> <Add option="-D_MBCS" />
<Add option="-D_POSIX" />
<Add directory="." /> <Add directory="." />
<Add directory="..\windows" /> <Add directory="..\windows" />
<Add directory="..\common\jack" /> <Add directory="..\common\jack" />
@@ -44,6 +45,7 @@
<Add option="-D_DEBUG" /> <Add option="-D_DEBUG" />
<Add option="-D_CONSOLE" /> <Add option="-D_CONSOLE" />
<Add option="-D_MBCS" /> <Add option="-D_MBCS" />
<Add option="-D_POSIX" />
<Add directory="." /> <Add directory="." />
<Add directory="..\windows" /> <Add directory="..\windows" />
<Add directory="..\common\jack" /> <Add directory="..\common\jack" />
@@ -69,6 +71,7 @@
<Add option="-D_WINDOWS" /> <Add option="-D_WINDOWS" />
<Add option="-D_MBCS" /> <Add option="-D_MBCS" />
<Add option="-DJACK_MONITOR" /> <Add option="-DJACK_MONITOR" />
<Add option="-D_POSIX" />
<Add directory="." /> <Add directory="." />
<Add directory="..\windows" /> <Add directory="..\windows" />
<Add directory="..\common\jack" /> <Add directory="..\common\jack" />
@@ -95,6 +98,7 @@
<Add option="-DNDEBUG" /> <Add option="-DNDEBUG" />
<Add option="-D_WINDOWS" /> <Add option="-D_WINDOWS" />
<Add option="-D_MBCS" /> <Add option="-D_MBCS" />
<Add option="-D_POSIX" />
<Add directory="." /> <Add directory="." />
<Add directory="..\windows" /> <Add directory="..\windows" />
<Add directory="..\common\jack" /> <Add directory="..\common\jack" />
@@ -123,6 +127,7 @@
<Add option="-D_DEBUG" /> <Add option="-D_DEBUG" />
<Add option="-D_CONSOLE" /> <Add option="-D_CONSOLE" />
<Add option="-D_MBCS" /> <Add option="-D_MBCS" />
<Add option="-D_POSIX" />
<Add directory="." /> <Add directory="." />
<Add directory="..\windows" /> <Add directory="..\windows" />
<Add directory="..\common\jack" /> <Add directory="..\common\jack" />
@@ -153,6 +158,7 @@
<Add option="-D_WINDOWS" /> <Add option="-D_WINDOWS" />
<Add option="-D_MBCS" /> <Add option="-D_MBCS" />
<Add option="-DJACK_MONITOR" /> <Add option="-DJACK_MONITOR" />
<Add option="-D_POSIX" />
<Add directory="." /> <Add directory="." />
<Add directory="..\windows" /> <Add directory="..\windows" />
<Add directory="..\common\jack" /> <Add directory="..\common\jack" />


+ 0
- 2
windows/winmme/JackWinMMEDriver.cpp View File

@@ -363,8 +363,6 @@ extern "C"


SERVER_EXPORT jack_driver_desc_t * driver_get_descriptor() SERVER_EXPORT jack_driver_desc_t * driver_get_descriptor()
{ {
jack_driver_desc_t * desc;

return jack_driver_descriptor_construct("winmme", JackDriverSlave, "WinMME API based MIDI backend", NULL); return jack_driver_descriptor_construct("winmme", JackDriverSlave, "WinMME API based MIDI backend", NULL);
} }




+ 3
- 1
windows/winmme/JackWinMMEInputPort.cpp View File

@@ -191,7 +191,9 @@ JackWinMMEInputPort::ProcessJack(JackMidiBuffer *port_buffer,
"event.", jack_event->size); "event.", jack_event->size);
// Fallthrough on purpose // Fallthrough on purpose
case JackMidiWriteQueue::OK: case JackMidiWriteQueue::OK:
continue;
continue;
default:
break;
} }
break; break;
} }


+ 1
- 1
windows/winmme/JackWinMMEPort.cpp View File

@@ -55,7 +55,7 @@ JackWinMMEPort::GetOSErrorString(LPTSTR text)
if (! FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, error, if (! FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, error,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), text, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), text,
MAXERRORLENGTH, NULL)) { MAXERRORLENGTH, NULL)) {
snprintf(text, MAXERRORLENGTH, "Unknown OS error code '%d'", error);
snprintf(text, MAXERRORLENGTH, "Unknown OS error code '%ld'", error);
} }
} }




Loading…
Cancel
Save