wine
21 years agoConverted remaining 16-bit functions to the new varargs mechanism.
Alexandre Julliard [Wed, 27 Aug 2003 02:57:32 +0000 (02:57 +0000)] 
Converted remaining 16-bit functions to the new varargs mechanism.

21 years agoAvoid including stackframe.h if it's not needed.
Alexandre Julliard [Wed, 27 Aug 2003 02:52:17 +0000 (02:52 +0000)] 
Avoid including stackframe.h if it's not needed.

21 years agoAdded varargs support for 16-bit entry points.
Alexandre Julliard [Wed, 27 Aug 2003 02:20:44 +0000 (02:20 +0000)] 
Added varargs support for 16-bit entry points.
Added -ret16 entry point flag to allow 16-bit cdecl and varargs
function to return 16-bit values too.

21 years agoRemove some unneeded __WINESRC__ tests from the headers.
Dimitrie O. Paun [Wed, 27 Aug 2003 02:07:02 +0000 (02:07 +0000)] 
Remove some unneeded __WINESRC__ tests from the headers.
Miscellaneous cleanups and fixes.

21 years agoUpdate DLL list, add a link to msdn.com.
Mike Hearn [Wed, 27 Aug 2003 02:03:52 +0000 (02:03 +0000)] 
Update DLL list, add a link to msdn.com.

21 years agoMoved profile functions to dlls/kernel.
Alexandre Julliard [Tue, 26 Aug 2003 02:54:37 +0000 (02:54 +0000)] 
Moved profile functions to dlls/kernel.

21 years agoThe if1632 directory no longer exists.
Alexandre Julliard [Tue, 26 Aug 2003 02:31:43 +0000 (02:31 +0000)] 
The if1632 directory no longer exists.

21 years agoMoved a few more functions to dlls/kernel.
Alexandre Julliard [Tue, 26 Aug 2003 02:29:48 +0000 (02:29 +0000)] 
Moved a few more functions to dlls/kernel.

21 years agoMoved 16-bit relay and snoop support to dlls/kernel.
Alexandre Julliard [Tue, 26 Aug 2003 02:28:59 +0000 (02:28 +0000)] 
Moved 16-bit relay and snoop support to dlls/kernel.

21 years agoWarn users of winecfg about its incompleteness.
Mike Hearn [Mon, 25 Aug 2003 23:50:50 +0000 (23:50 +0000)] 
Warn users of winecfg about its incompleteness.

21 years agoMoved selector fixup for the relay code to the callto16 exception
Alexandre Julliard [Mon, 25 Aug 2003 23:48:30 +0000 (23:48 +0000)] 
Moved selector fixup for the relay code to the callto16 exception
handler.
Make sure to only use pop instructions to modify segment registers in
the relay code to simplify the selector fixup.

21 years agoDon't build memcpy_unaligned on 386 to avoid MSVC breakage (reported
Alexandre Julliard [Mon, 25 Aug 2003 23:45:34 +0000 (23:45 +0000)] 
Don't build memcpy_unaligned on 386 to avoid MSVC breakage (reported
by Jon Griffiths).

21 years agoAlways setup the selection colour, not just in custom draw.
Dimitrie O. Paun [Mon, 25 Aug 2003 23:44:51 +0000 (23:44 +0000)] 
Always setup the selection colour, not just in custom draw.

21 years agoMake all users of DOSVM_Enter explicitly set V86 flag.
Jukka Heinonen [Mon, 25 Aug 2003 01:01:01 +0000 (01:01 +0000)] 
Make all users of DOSVM_Enter explicitly set V86 flag.
Fix mouse relay stack usage in protected mode.
Raw mode switch now handles interrupt flag correctly.

21 years agoMoved 16-bit calls initialization and exception handling to kernel32.
Alexandre Julliard [Mon, 25 Aug 2003 00:56:37 +0000 (00:56 +0000)] 
Moved 16-bit calls initialization and exception handling to kernel32.
Store the call_to_16 return address on the stack from the C code so
that we don't need two variants of call_to_16_regs.

21 years agoFixed copy/paste error in WOWCallback16Ex call (spotted by Dmitry
Alexandre Julliard [Mon, 25 Aug 2003 00:54:24 +0000 (00:54 +0000)] 
Fixed copy/paste error in WOWCallback16Ex call (spotted by Dmitry
Timoshkov).

21 years agoReplace some magic numbers with symbols.
Jukka Heinonen [Mon, 25 Aug 2003 00:53:35 +0000 (00:53 +0000)] 
Replace some magic numbers with symbols.
Add sanity checks so that VGA window cannot be used to access memory
outside framebuffer.

21 years agoFix the hit test for full row select in REPORT mode (found, debugged,
Dimitrie O. Paun [Mon, 25 Aug 2003 00:53:11 +0000 (00:53 +0000)] 
Fix the hit test for full row select in REPORT mode (found, debugged,
and tested by Eric Pouech).

21 years agoExtended WOWCallback16Ex to support register functions too. This
Alexandre Julliard [Sat, 23 Aug 2003 23:30:51 +0000 (23:30 +0000)] 
Extended WOWCallback16Ex to support register functions too.  This
allows simplifying the wine_call_to_16 assembly code by moving part of
it to C code, and getting rid of the extra kernel exports.

21 years agoFix the creation of treeview with checkboxes.
Maxime Bellengé [Sat, 23 Aug 2003 23:18:48 +0000 (23:18 +0000)] 
Fix the creation of treeview with checkboxes.

21 years agoSplit win16/32 support.
Steven Edwards [Sat, 23 Aug 2003 23:18:13 +0000 (23:18 +0000)] 
Split win16/32 support.

21 years agoMoved 16-bit builtin module handling to dlls/kernel/ne_module.c.
Alexandre Julliard [Sat, 23 Aug 2003 23:07:10 +0000 (23:07 +0000)] 
Moved 16-bit builtin module handling to dlls/kernel/ne_module.c.

21 years agoSet version to 8.1.
Tom Wickline [Sat, 23 Aug 2003 23:05:24 +0000 (23:05 +0000)] 
Set version to 8.1.

21 years agoMore Spanish translations.
José Manuel Ferrer Ortiz [Sat, 23 Aug 2003 23:04:49 +0000 (23:04 +0000)] 
More Spanish translations.

21 years agoImplement DllRegisterServer and DllUnregisterServer for dsound.dll,
John K. Hohm [Sat, 23 Aug 2003 23:03:28 +0000 (23:03 +0000)] 
Implement DllRegisterServer and DllUnregisterServer for dsound.dll,
and add OleSelfRegister version string.

21 years agoAdded Italian resources.
Ivan Leo Murray-Smith [Sat, 23 Aug 2003 22:59:16 +0000 (22:59 +0000)] 
Added Italian resources.

21 years agoMinor fixes.
Ivan Leo Murray-Smith [Sat, 23 Aug 2003 22:58:50 +0000 (22:58 +0000)] 
Minor fixes.

21 years agoImplement DllRegisterServer and DllUnregisterServer for shdocvw.dll,
John K. Hohm [Sat, 23 Aug 2003 22:57:03 +0000 (22:57 +0000)] 
Implement DllRegisterServer and DllUnregisterServer for shdocvw.dll,
and add OleSelfRegister version string.

21 years agoImplement DllRegisterServer and DllUnregisterServer for quartz.dll,
John K. Hohm [Sat, 23 Aug 2003 22:56:43 +0000 (22:56 +0000)] 
Implement DllRegisterServer and DllUnregisterServer for quartz.dll,
and add OleSelfRegister version string.

21 years agoImplement DllRegisterServer and DllUnregisterServer for dplayx.dll,
John K. Hohm [Sat, 23 Aug 2003 22:55:43 +0000 (22:55 +0000)] 
Implement DllRegisterServer and DllUnregisterServer for dplayx.dll,
and add OleSelfRegister version string.

21 years agoImplement DllRegisterServer and DllUnregisterServer for avifil32.dll,
John K. Hohm [Sat, 23 Aug 2003 22:54:53 +0000 (22:54 +0000)] 
Implement DllRegisterServer and DllUnregisterServer for avifil32.dll,
and add OleSelfRegister version string.

21 years agoSend STN_CLICKED ad STN_DBLCLK messages to parent window if SS_NOTIFY
Igor Grahek [Sat, 23 Aug 2003 00:46:34 +0000 (00:46 +0000)] 
Send STN_CLICKED ad STN_DBLCLK messages to parent window if SS_NOTIFY
is enabled.

21 years agoIn the global interface table:
Mike Hearn [Sat, 23 Aug 2003 00:45:49 +0000 (00:45 +0000)] 
In the global interface table:
- Print warnings when things go wrong.
- Alter the way we do refcounting.
- Don't release the stream on retrieval, just rewind it instead.
- Implement thread safety.

21 years agoGot rid of 16-bit glue code generation since it is no longer used.
Alexandre Julliard [Sat, 23 Aug 2003 00:45:20 +0000 (00:45 +0000)] 
Got rid of 16-bit glue code generation since it is no longer used.

21 years agoMoved most of the 16-bit task support and NE module loader to
Alexandre Julliard [Sat, 23 Aug 2003 00:03:40 +0000 (00:03 +0000)] 
Moved most of the 16-bit task support and NE module loader to
dlls/kernel.

21 years ago- implemented loader, loader's stream and loading of objects (now you
Rok Mandeljc [Fri, 22 Aug 2003 23:53:27 +0000 (23:53 +0000)] 
- implemented loader, loader's stream and loading of objects (now you
  can use builtin dmloader and native other dm*.dlls)
- implemented proper creation of objects and retrieval of dmusic
  interfaces from them (object, stream, ...)
- implemented all "standard track types" and appropriate stream (for
  dmband, loading is almost complete)
- cleaned some obsolete stuff
- split debug channels

21 years agoFixed prototypes of CreateStatusWindowA/W, ImageList_Copy,
Filip Navara [Fri, 22 Aug 2003 23:51:15 +0000 (23:51 +0000)] 
Fixed prototypes of CreateStatusWindowA/W, ImageList_Copy,
ImageList_EndDrag, ImageList_SetImageCount.

21 years agoAdded Slovenian translation.
Rok Mandeljc [Fri, 22 Aug 2003 23:49:47 +0000 (23:49 +0000)] 
Added Slovenian translation.

21 years agoRemoved obsolete WIN32_LastError definition.
Alexandre Julliard [Fri, 22 Aug 2003 05:30:11 +0000 (05:30 +0000)] 
Removed obsolete WIN32_LastError definition.

21 years agoFix/make the case of Bochs and Plex86 more consistent.
Francois Gouget [Fri, 22 Aug 2003 05:28:21 +0000 (05:28 +0000)] 
Fix/make the case of Bochs and Plex86 more consistent.
Add CodeWeavers to the list of contributors (currently hosts WineHQ).
Tweak the 'how to submit patches' FAQ.
Add Kylix and MusicMatch JukeBox to the list of applications ported
using Wine(lib).

21 years agoBe more explicit when describing what belongs in Wine (API) and what
Francois Gouget [Fri, 22 Aug 2003 05:26:31 +0000 (05:26 +0000)] 
Be more explicit when describing what belongs in Wine (API) and what
does not belong in Wine (drivers, Windows applets, window managers,
etc.). Also point to projects where such contributions would be more
appropriate.

21 years agoAnswer this eternal question:
Francois Gouget [Fri, 22 Aug 2003 05:22:41 +0000 (05:22 +0000)] 
Answer this eternal question:
Can I use Wine to make the Windows driver for my network card /
graphics card / scanner / etc. work on Unix?

21 years agoAdd an entry answering the eternal question:
Francois Gouget [Fri, 22 Aug 2003 05:10:25 +0000 (05:10 +0000)] 
Add an entry answering the eternal question:
When will Wine integrate an x86 CPU emulator?

21 years agoFixes for building with w32api headers on Mingw.
Steven Edwards [Fri, 22 Aug 2003 05:05:56 +0000 (05:05 +0000)] 
Fixes for building with w32api headers on Mingw.

21 years agoRemoved no longer used internal definitions.
Alexandre Julliard [Fri, 22 Aug 2003 05:04:56 +0000 (05:04 +0000)] 
Removed no longer used internal definitions.

21 years agoRemoved reference to the WINE_UNICODE_TEXT macro that no longer
Alexandre Julliard [Fri, 22 Aug 2003 05:04:23 +0000 (05:04 +0000)] 
Removed reference to the WINE_UNICODE_TEXT macro that no longer
exists.

21 years agoSome new Spanish translations and improvements to other existing
José Manuel Ferrer Ortiz [Fri, 22 Aug 2003 05:03:19 +0000 (05:03 +0000)] 
Some new Spanish translations and improvements to other existing
ones.

21 years agoAvoid crash in WCMD_run_program when no extension was specified.
Oleg Prokhorov [Fri, 22 Aug 2003 05:01:59 +0000 (05:01 +0000)] 
Avoid crash in WCMD_run_program when no extension was specified.

21 years agoSome applications depend on the order of initialization steps of the
Dmitry Timoshkov [Fri, 22 Aug 2003 05:01:08 +0000 (05:01 +0000)] 
Some applications depend on the order of initialization steps of the
custom file open dialog.

21 years agoProtect SystemParametersInfoA(SPI_GETxxx) from NULL pvParam.
Dmitry Timoshkov [Fri, 22 Aug 2003 05:00:45 +0000 (05:00 +0000)] 
Protect SystemParametersInfoA(SPI_GETxxx) from NULL pvParam.

21 years agoTweak 'Will there be a Windows version of Wine?':
Francois Gouget [Fri, 22 Aug 2003 05:00:25 +0000 (05:00 +0000)] 
Tweak 'Will there be a Windows version of Wine?':
- Add a pointer to the MinGW project
- Fix the ReactOS case
- Explain the rationale behind these porting projects

21 years agoCope with wait4 being interrupted by a signal.
Alexandre Julliard [Thu, 21 Aug 2003 21:35:15 +0000 (21:35 +0000)] 
Cope with wait4 being interrupted by a signal.

21 years agoStore the debug info structure on the thread stack.
Alexandre Julliard [Thu, 21 Aug 2003 21:34:33 +0000 (21:34 +0000)] 
Store the debug info structure on the thread stack.
Moved thread initialization code from sysdeps.c to thread.c to avoid
an indirection.

21 years agoRemoved a few remaining WINVER checks.
Alexandre Julliard [Thu, 21 Aug 2003 21:32:48 +0000 (21:32 +0000)] 
Removed a few remaining WINVER checks.

21 years agoIt seems FreeBSD no longer requires libpthread when linking with
Alexandre Julliard [Thu, 21 Aug 2003 21:30:35 +0000 (21:30 +0000)] 
It seems FreeBSD no longer requires libpthread when linking with
OpenGL.

21 years agoCorrectly pass the exception to the application when
Alexandre Julliard [Thu, 21 Aug 2003 21:28:51 +0000 (21:28 +0000)] 
Correctly pass the exception to the application when
BreakOnFirstChance is 0.

21 years agoSmall resources fixes.
Ivan Leo Murray-Smith [Thu, 21 Aug 2003 21:28:05 +0000 (21:28 +0000)] 
Small resources fixes.

21 years agoAdded Italian resources.
Ivan Leo Murray-Smith [Thu, 21 Aug 2003 21:27:30 +0000 (21:27 +0000)] 
Added Italian resources.

21 years agoRemove useless comments that clutter the code.
Mike McCormack [Thu, 21 Aug 2003 21:26:23 +0000 (21:26 +0000)] 
Remove useless comments that clutter the code.

21 years agoStub for (undocumented) SHCreateLinks.
Mike McCormack [Thu, 21 Aug 2003 21:26:07 +0000 (21:26 +0000)] 
Stub for (undocumented) SHCreateLinks.

21 years agoUpdate install script to match current build process.
Jon Griffiths [Thu, 21 Aug 2003 21:25:37 +0000 (21:25 +0000)] 
Update install script to match current build process.
Fix a warning in generated dll now we build with -DSTRICT.

21 years agoCope with potentially moved and resized file view window.
Dmitry Timoshkov [Thu, 21 Aug 2003 21:25:16 +0000 (21:25 +0000)] 
Cope with potentially moved and resized file view window.

21 years agowinnls.h must not include winbase.h.
Alexandre Julliard [Wed, 20 Aug 2003 18:22:31 +0000 (18:22 +0000)] 
winnls.h must not include winbase.h.

21 years agoAdded tests for buffer property sets.
Robert Reif [Wed, 20 Aug 2003 18:18:39 +0000 (18:18 +0000)] 
Added tests for buffer property sets.

21 years agoSplit property sets into two types: buffer and private.
Robert Reif [Wed, 20 Aug 2003 18:18:23 +0000 (18:18 +0000)] 
Split property sets into two types: buffer and private.

21 years agoMake FPU emulation use CS:IP when determining location of calling
Jukka Heinonen [Wed, 20 Aug 2003 18:17:39 +0000 (18:17 +0000)] 
Make FPU emulation use CS:IP when determining location of calling
software interrupt.

21 years agoRemove unnecessary __wine_call_from_16_regs call frame management code
Jukka Heinonen [Wed, 20 Aug 2003 18:17:23 +0000 (18:17 +0000)] 
Remove unnecessary __wine_call_from_16_regs call frame management code
from raw mode switch handler.

21 years agoFix building libwine_unicode with w32api headers.
Steven Edwards [Wed, 20 Aug 2003 18:16:44 +0000 (18:16 +0000)] 
Fix building libwine_unicode with w32api headers.

21 years agoDlopen libncurses.so in wineconsole.
Mike McCormack [Wed, 20 Aug 2003 04:19:01 +0000 (04:19 +0000)] 
Dlopen libncurses.so in wineconsole.

21 years agoBINDIR is no longer needed.
Alexandre Julliard [Wed, 20 Aug 2003 04:15:19 +0000 (04:15 +0000)] 
BINDIR is no longer needed.

21 years agoSupport -mconsole.
Richard Cohen [Wed, 20 Aug 2003 04:15:02 +0000 (04:15 +0000)] 
Support -mconsole.

21 years agoRemove hardcoded BINDIR paths.
Richard Cohen [Wed, 20 Aug 2003 03:49:40 +0000 (03:49 +0000)] 
Remove hardcoded BINDIR paths.

21 years agoRemove the dummy pthread functions and use -lpthread instead to
Alexandre Julliard [Wed, 20 Aug 2003 03:44:25 +0000 (03:44 +0000)] 
Remove the dummy pthread functions and use -lpthread instead to
resolve missing symbols in GL libs.

21 years agoUpdated LT keyboard.
Nerijus Baliunas [Wed, 20 Aug 2003 03:40:47 +0000 (03:40 +0000)] 
Updated LT keyboard.

21 years agoRemoved the DOSFS_ specific time related conversion routine, and make
Eric Pouech [Wed, 20 Aug 2003 03:40:21 +0000 (03:40 +0000)] 
Removed the DOSFS_ specific time related conversion routine, and make
use of the ntdll equivalents.

21 years agoTranslate a few more kernel32 calls into the ntdll equivalents.
Eric Pouech [Wed, 20 Aug 2003 03:39:38 +0000 (03:39 +0000)] 
Translate a few more kernel32 calls into the ntdll equivalents.

21 years agoRemoved code for handling ${VAR} constructs in .ini files.
Eric Pouech [Wed, 20 Aug 2003 03:39:07 +0000 (03:39 +0000)] 
Removed code for handling ${VAR} constructs in .ini files.

21 years agoFix parameter to snd_pcm_sw_params_set_silence_size().
<wine@frotz.org> [Wed, 20 Aug 2003 03:38:27 +0000 (03:38 +0000)] 
Fix parameter to snd_pcm_sw_params_set_silence_size().

21 years agoApply only specified tests.
Dmitry Timoshkov [Wed, 20 Aug 2003 03:34:45 +0000 (03:34 +0000)] 
Apply only specified tests.
Implement IS_TEXT_UNICODE_REVERSE_SIGNATURE, IS_TEXT_UNICODE_STATISTICS
and IS_TEXT_UNICODE_NULL_BYTES tests.
Revert IS_TEXT_UNICODE_ODD_LENGTH test.

21 years agoStub out the _[w]popen/_pclose() functions.
Dimitrie O. Paun [Wed, 20 Aug 2003 03:34:20 +0000 (03:34 +0000)] 
Stub out the _[w]popen/_pclose() functions.

21 years agoWe need to ignore STATUS_OBJECT_TYPE_MISMATCH errors too when setting
Alexandre Julliard [Tue, 19 Aug 2003 03:46:24 +0000 (03:46 +0000)] 
We need to ignore STATUS_OBJECT_TYPE_MISMATCH errors too when setting
the process console.

21 years agoAdded Italian resources.
Ivan Leo Murray-Smith [Tue, 19 Aug 2003 03:44:41 +0000 (03:44 +0000)] 
Added Italian resources.

21 years agoRenamed system.dll to system.drv.
Alexandre Julliard [Tue, 19 Aug 2003 03:27:45 +0000 (03:27 +0000)] 
Renamed system.dll to system.drv.

21 years agoReplaced remaining calls to PROFILE_GetWineIniString/Bool by direct
Alexandre Julliard [Tue, 19 Aug 2003 03:21:04 +0000 (03:21 +0000)] 
Replaced remaining calls to PROFILE_GetWineIniString/Bool by direct
registry accesses.

21 years agoAdded i8n entries.
Jon Griffiths [Tue, 19 Aug 2003 03:12:56 +0000 (03:12 +0000)] 
Added i8n entries.

21 years agoUse exception as the base for all exception derived classes.
Jon Griffiths [Tue, 19 Aug 2003 03:12:32 +0000 (03:12 +0000)] 
Use exception as the base for all exception derived classes.
Implement type_info methods correctly.
Add static RTTI for exported objects.
Throw exceptions when run time casts fail.

21 years agoImplement registry key unloading.
Mike McCormack [Tue, 19 Aug 2003 03:08:17 +0000 (03:08 +0000)] 
Implement registry key unloading.

21 years agoFixed regression in process creation (std handle inheritance).
Eric Pouech [Tue, 19 Aug 2003 01:05:17 +0000 (01:05 +0000)] 
Fixed regression in process creation (std handle inheritance).

21 years ago_ftol should return a 64-bit int (spotted by Jon Griffiths).
Alexandre Julliard [Tue, 19 Aug 2003 01:03:08 +0000 (01:03 +0000)] 
_ftol should return a 64-bit int (spotted by Jon Griffiths).

21 years agoWhen forcing call to DOS relay from protected mode, make sure that
Jukka Heinonen [Tue, 19 Aug 2003 00:59:23 +0000 (00:59 +0000)] 
When forcing call to DOS relay from protected mode, make sure that
relay sees original stack and code pointers. Make it possible for DOS
relay to modify code and stack pointers.

21 years agoRemoved VERSION typedef.
Erwin Wolff [Tue, 19 Aug 2003 00:59:02 +0000 (00:59 +0000)] 
Removed VERSION typedef.

21 years agoWrap error-prone msc symbol loading with a __TRY block.
Gregory M. Turner [Tue, 19 Aug 2003 00:57:58 +0000 (00:57 +0000)] 
Wrap error-prone msc symbol loading with a __TRY block.

21 years agoAllocate space to contain the IMAGE_NT_HEADERS structure (ImageLoad
Christian Costa [Tue, 19 Aug 2003 00:57:29 +0000 (00:57 +0000)] 
Allocate space to contain the IMAGE_NT_HEADERS structure (ImageLoad
function).
Add some more traces.

21 years agoFix unreachable TVHT_ONITEMSTATEICON in TREEVIEW_LButtonDown.
Maxime Bellengé [Tue, 19 Aug 2003 00:57:08 +0000 (00:57 +0000)] 
Fix unreachable TVHT_ONITEMSTATEICON in TREEVIEW_LButtonDown.

21 years agoMake RtlTimeToSecondsSince1970 consistent with other time calls.
Jon Griffiths [Tue, 19 Aug 2003 00:56:34 +0000 (00:56 +0000)] 
Make RtlTimeToSecondsSince1970 consistent with other time calls.
Documentation fixes.

21 years agoSpelling and case fixes.
Francois Gouget [Mon, 18 Aug 2003 20:11:29 +0000 (20:11 +0000)] 
Spelling and case fixes.

21 years agoAdded Spanish translation.
José Manuel Ferrer Ortiz [Mon, 18 Aug 2003 20:06:09 +0000 (20:06 +0000)] 
Added Spanish translation.

21 years agoAdded missing \n in TRACE calls.
Alexandre Julliard [Mon, 18 Aug 2003 20:04:27 +0000 (20:04 +0000)] 
Added missing \n in TRACE calls.

21 years agoFree the debug info when making a critical section global.
Alexandre Julliard [Mon, 18 Aug 2003 20:03:00 +0000 (20:03 +0000)] 
Free the debug info when making a critical section global.

21 years agoPortability fixes.
Jon Griffiths [Mon, 18 Aug 2003 20:00:44 +0000 (20:00 +0000)] 
Portability fixes.