Names of Windows header files are corrected to be lower case to match their actual names on Windows (except Windows.h) and MinGW.
Files COMMANDWINDOW.h and MAINWINDOW.h in Draw package are renamed to CamelCase according to names of corresponding CXX files.
set (CSF_gdi32 "gdi32.lib")
set (CSF_user32 "user32.lib")
set (CSF_wsock32 "wsock32.lib")
- set (CSF_psapi "Psapi.lib")
+ set (CSF_psapi "psapi.lib")
set (CSF_d3d9 "D3D9.lib")
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore" OR USE_GLES2)
set (CSF_OpenGlLibs "libEGL libGLESv2")
+++ /dev/null
-/*
- Copyright (c) 1998-1999 Matra Datavision
- Copyright (c) 1999-2014 OPEN CASCADE SAS
-
- This file is part of Open CASCADE Technology software library.
-
- This library is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License version 2.1 as published
- by the Free Software Foundation, with special exception defined in the file
- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
- distribution for complete text of the license and disclaimer of any warranty.
-
- Alternatively, this file may be used under the terms of Open CASCADE
- commercial license or contractual agreement.
-*/
-
-#ifdef _WIN32
-
-
-#define COMMANDCLASS L"COMMANDWINDOW"
-#define COMMANDTITLE L"Command Window"
-
-
-HWND CreateCommandWindow(HWND, int);
-LRESULT APIENTRY CommandProc(HWND, UINT, WPARAM, LPARAM);
-BOOL CommandCreateProc(HWND);
-VOID CommandDestroyProc(HWND);
-BOOL CommandHandler(HWND, WPARAM, LPARAM);
-
-
-#include <sys/stat.h>
-#include <tcl.h>
-#include <Standard_Stream.hxx>
-#include <stdio.h>
-//#include <io.h>
-#include <fcntl.h>
-
-
-
-#endif
#ifdef _WIN32
#include <windows.h>
-#include <CommandWindow.h>
+#include <COMMANDWINDOW.h>
#include <Draw_Window.hxx>
-#include <MainWindow.h>
+#include <MAINWINDOW.h>
#include <Draw_Appli.hxx>
#include <TCollection_AsciiString.hxx>
--- /dev/null
+/*
+ Copyright (c) 1998-1999 Matra Datavision
+ Copyright (c) 1999-2014 OPEN CASCADE SAS
+
+ This file is part of Open CASCADE Technology software library.
+
+ This library is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License version 2.1 as published
+ by the Free Software Foundation, with special exception defined in the file
+ OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+ distribution for complete text of the license and disclaimer of any warranty.
+
+ Alternatively, this file may be used under the terms of Open CASCADE
+ commercial license or contractual agreement.
+*/
+
+#ifdef _WIN32
+
+
+#define COMMANDCLASS L"COMMANDWINDOW"
+#define COMMANDTITLE L"Command Window"
+
+
+HWND CreateCommandWindow(HWND, int);
+LRESULT APIENTRY CommandProc(HWND, UINT, WPARAM, LPARAM);
+BOOL CommandCreateProc(HWND);
+VOID CommandDestroyProc(HWND);
+BOOL CommandHandler(HWND, WPARAM, LPARAM);
+
+
+#include <sys/stat.h>
+#include <tcl.h>
+#include <Standard_Stream.hxx>
+#include <stdio.h>
+//#include <io.h>
+#include <fcntl.h>
+
+
+
+#endif
CommandWindow.cxx
-COMMANDWINDOW.h
+CommandWindow.h
Draw.cxx
Draw.hxx
Draw_Appli.hxx
init.cxx
init.h
MainWindow.cxx
-MAINWINDOW.h
+MainWindow.h
+++ /dev/null
-/*
- Copyright (c) 1998-1999 Matra Datavision
- Copyright (c) 1999-2014 OPEN CASCADE SAS
-
- This file is part of Open CASCADE Technology software library.
-
- This library is free software; you can redistribute it and/or modify it under
- the terms of the GNU Lesser General Public License version 2.1 as published
- by the Free Software Foundation, with special exception defined in the file
- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
- distribution for complete text of the license and disclaimer of any warranty.
-
- Alternatively, this file may be used under the terms of Open CASCADE
- commercial license or contractual agreement.
-*/
-
-/****************************************************\
-*/
-/** MainWindow.h
-*/
-/*\****************************************************/
-#ifdef _WIN32
-
-#define CLIENTWND 0
-
-/*
-** PROCEDURES DE MAIN WINDOW
-*/
-#include <Windows.h>
-
-LRESULT APIENTRY WndProc(HWND, UINT, WPARAM, LPARAM);
-BOOL CreateProc(HWND);
-VOID DestroyProc(HWND);
-LRESULT APIENTRY CmdProc(HWND, UINT, WPARAM, LPARAM);
-
-
-#endif
--- /dev/null
+/*
+ Copyright (c) 1998-1999 Matra Datavision
+ Copyright (c) 1999-2014 OPEN CASCADE SAS
+
+ This file is part of Open CASCADE Technology software library.
+
+ This library is free software; you can redistribute it and/or modify it under
+ the terms of the GNU Lesser General Public License version 2.1 as published
+ by the Free Software Foundation, with special exception defined in the file
+ OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+ distribution for complete text of the license and disclaimer of any warranty.
+
+ Alternatively, this file may be used under the terms of Open CASCADE
+ commercial license or contractual agreement.
+*/
+
+/****************************************************\
+*/
+/** MainWindow.h
+*/
+/*\****************************************************/
+#ifdef _WIN32
+
+#define CLIENTWND 0
+
+/*
+** PROCEDURES DE MAIN WINDOW
+*/
+#include <windows.h>
+
+LRESULT APIENTRY WndProc(HWND, UINT, WPARAM, LPARAM);
+BOOL CreateProc(HWND);
+VOID DestroyProc(HWND);
+LRESULT APIENTRY CmdProc(HWND, UINT, WPARAM, LPARAM);
+
+
+#endif
//=======================================================================
#ifdef _WIN32
-# include <Windows.h>
+# include <windows.h>
# define SLEEP(NSEC) Sleep(1000*(NSEC))
#else
#include <unistd.h>
#include <TCollection_ExtendedString.hxx>
#include <windows.h>
-#include <Strsafe.h>
+#include <strsafe.h>
typedef struct _error_table {
#include <stdio.h>
#include <io.h>
- #include <Strsafe.h>
+ #include <strsafe.h>
#define ACE_HEADER_SIZE (sizeof(ACCESS_ALLOWED_ACE) - sizeof (DWORD))
# include <tchar.h>
#endif // _INC_TCHAR
-#include <Strsafe.h>
+#include <strsafe.h>
#define TEST_RAISE( arg ) _test_raise ( fName, ( arg ) )
#define RAISE( arg ) throw Standard_ProgramError ( ( arg ) )
#include <winbase.h>
#include <process.h>
#include <malloc.h>
- #include <Psapi.h>
+ #include <psapi.h>
#ifdef _MSC_VER
#pragma comment(lib, "Psapi.lib")
#endif
#include <TCollection_ExtendedString.hxx>
#include <OSD_WNT.hxx>
-#include <LMCONS.H> // for UNLEN - maximum user name length GetUserName()
+#include <lmcons.h> // for UNLEN - maximum user name length GetUserName()
void _osd_wnt_set_error ( OSD_Error&, OSD_WhoAmI, ... );
/***/
#include <OSD_WNT.hxx>
-#include <Strsafe.h>
+#include <strsafe.h>
#include <wchar.h>
#include <stdlib.h>
#endif
#include <windows.h>
-#include <Strsafe.h>
+#include <strsafe.h>
#ifndef STATUS_FLOAT_MULTIPLE_FAULTS
// <ntstatus.h>
#endif
#ifdef _WIN32
-#include <Strsafe.h>
+#include <strsafe.h>
#endif
//======================================================================
// Assumptions