What part of CodeSnippets is nonstandard C++ ?
Maybe we can fix that if we knew what you mean.
In memorymappedfile.cpp, you'll see that every function has separate Windows code and Linux code. It follows this pattern:
#ifdef __WXMSW__
// (Code intended to build in Windows)
#else
// (Code intended to build in Linux)
#endif
Since __WXMSW__ is not defined, my build blows up trying to build Linux-specific code.
../memorymappedfile.cpp: In member function 'long int wxMemoryMappedFile::MapFile(const wxString&, bool)':
../memorymappedfile.cpp:107: error: 'open' was not declared in this scope
../memorymappedfile.cpp:124: error: 'MAP_FILE' was not declared in this scope
Thought #1: Does wxWindows include a file operation API so we can outright eliminate this fragile code?
Thought #2: I've read that MAP_FILE is legacy and is #defined as 0. Can someone verify this?
I don't know what this would break on other platforms, but I'm adding this code to the file and am trying a build now....
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifndef MAP_FILE
#define MAP_FILE 0
#endif