-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#elif defined WIN32
#define SHMEMSIZE 4096
-
+#ifdef UNICODE
+ std::wstring empty = L"";
+#else
+ std::string empty = "";
+#endif
HANDLE hMapObject = CreateFileMapping(
- INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, SHMEMSIZE, "");
+ INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, SHMEMSIZE, empty.c_str() );
if (hMapObject != NULL) {
// Get a pointer to the file-mapped shared memory.
buffer = ( char* ) MapViewOfFile(
#else
// Sort de la compilation
-#error Necessite l''utilisation de la primitive mmap
+#error "Necessite l'utilisation de la primitive mmap"
#endif
return -1;
};
-
- return length;
-};
+ return (int)length;
+}