#define PCVOID LPCVOID
#define __VALIST __ms_va_list
#endif
+
+static inline BOOL PtInRect_sa(LPCRECT r, int x, int y)
+{
+ POINT p = { x, y };
+ return PtInRect(r, p);
+}
#!/bin/sh
+mingwb=i686-w64-mingw32
+
target_s=$1
src_asm=$2
implist=${target_s}_implist
;;
esac
- grep "\<_$si\>" /usr/i586-mingw32msvc/lib/lib* "$@" | awk '{print $3}' | \
+ grep "\<_\?_$si\>" /usr/$mingwb/lib/lib* "$@" | awk '{print $3}' | \
while read f; do
- sym=`i586-mingw32msvc-nm $f | grep "\<_$si\>" | grep ' T ' | awk '{print $3}'`
+ sym=`${mingwb}-nm $f | grep "\<_\?_$si\>" | grep ' T ' | awk '{print $3}'`
if test -n "$sym"; then
echo $sym > $tmpsym
break
// DECLSPEC_NORETURN
void __cdecl _endthreadex (unsigned int);
+void __cdecl _lock(int locknum);
+void __cdecl _unlock(int locknum);
+size_t __cdecl strncnt(const char*, size_t);
_fgetc
__filbuf
__mbsicmp
-__beginthread
-__endthread
-__beginthreadex
-__endthreadex
__onexit
_atexit
__stricmp
# __ftol2 - todo
_ceil
+# msvcrt
+__beginthread
+__endthread
+__beginthreadex
+__endthreadex
+__lock
+__unlock
+
# not in mingw
_memcpy_0
_siglookup