Commit e1bcdb20 authored by jehan monnier's avatar jehan monnier

start mingw32ce port

parent fbc81e88
......@@ -98,6 +98,8 @@ case "$target_os" in
AC_DEFINE(NOCONNECT,1,[Defined if we should not use connect() on udp sockets])
PTHREAD_LDFLAGS="-pthread"
;;
*mingw32ce)
CFLAGS="$CFLAGS -D_WIN32_WCE";;
*mingw*)
CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0501 -DORTP_STATIC"
LIBS="$LIBS -lws2_32 -liphlpapi -lwinmm"
......
......@@ -225,7 +225,7 @@ int WIN_thread_create(ortp_thread_t *th, void *attr, void * (*func)(void *), voi
thread_param_t *params=ortp_new(thread_param_t,1);
params->func=func;
params->arg=data;
*th=(HANDLE)_beginthreadex( NULL, 0, thread_starter, params, 0, NULL);
*th=(HANDLE)_beginthreadex( NULL, 0, (LPTHREAD_START_ROUTINE)thread_starter, params, 0, NULL);
return 0;
}
......
# -*- shell-script -*-
ARCH=arm4l
SDK_BIN_PATH=/opt/mingw32ce/bin
SYSROOT_PATH=/opt/mingw32ce
CC="${SDK_BIN_PATH}/arm-mingw32ce-gcc -std=c99 -isysroot=${SYSROOT_PATH}"
LD="${SDK_BIN_PATH}/arm-mingw32ce-ld "
AR=${SDK_BIN_PATH}/arm-mingw32ce-ar
RANLIB=${SDK_BIN_PATH}/arm-mingw32ce-ranlib
CPPFLAGS="-Dasm=__asm"
#LDFLAGS="-Wl,-syslibroot ${SYSROOT_PATH}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment