[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] e8b7b0: Some cygwin/mingw don't know about _recalloc

GitHub noreply at github.com
Tue Jul 26 23:03:32 UTC 2016


  Branch: refs/heads/Cog
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: e8b7b0125e7f581d184685a2835981a971e301ca
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/e8b7b0125e7f581d184685a2835981a971e301ca
  Author: nicolas-cellier-aka-nice <nicolas.cellier.aka.nice at gmail.com>
  Date:   2016-07-26 (Tue, 26 Jul 2016)

  Changed paths:
    M platforms/win32/vm/sqWin32.h

  Log Message:
  -----------
  Some cygwin/mingw don't know about _recalloc

work around with a combination of realloc & memset ifndef _MSC_VER


  Commit: dc3df9bb3366479662a8f20903cabc5d906734a6
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/dc3df9bb3366479662a8f20903cabc5d906734a6
  Author: nicolas-cellier-aka-nice <nicolas.cellier.aka.nice at gmail.com>
  Date:   2016-07-27 (Wed, 27 Jul 2016)

  Changed paths:
    M platforms/win32/vm/sqWin32Main.c

  Log Message:
  -----------
  Don't redefine maxOldSpaceSize at all, it's already included


  Commit: 4f87bc4aee0292ee3f9ede3f79d6ee69239c12c4
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/4f87bc4aee0292ee3f9ede3f79d6ee69239c12c4
  Author: nicolas-cellier-aka-nice <nicolas.cellier.aka.nice at gmail.com>
  Date:   2016-07-27 (Wed, 27 Jul 2016)

  Changed paths:
    M build.win32x86/common/Makefile.tools
    M build.win64x64/common/Makefile.tools
    M platforms/win32/plugins/SecurityPlugin/sqWin32Security.c

  Log Message:
  -----------
  Some cygwin/mingw don't know about SHGetKnownFolderPath

You can check if you have it with
nm -a /usr/i686-w64-mingw32/sys-root/mingw/lib/libshfolder.a | less
Workaround by using older (MSVC deprecated) SHGetFolderPathW

Also force MY_DOCUMENTS_VAR as WCHAR, since it is used thru SetEnvironmentVariableW

Also add a few missing return


Compare: https://github.com/OpenSmalltalk/opensmalltalk-vm/compare/d9f3d4d3df7c...4f87bc4aee02


More information about the Vm-dev mailing list