mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0026787: Do not declare redundant macros WNT, LIN, WIN32, WIN64 within samples project files
Redundant macros were removed. Defines _WIN32, __linux__ and LININTEL were removed from qt samples *.pro files
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
|
||||
#ifndef NO_COMMONSAMPLE_EXPORTS
|
||||
#ifdef COMMONSAMPLE_EXPORTS
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
#define COMMONSAMPLE_EXPORT __declspec( dllexport )
|
||||
#else
|
||||
#define COMMONSAMPLE_EXPORT
|
||||
#endif
|
||||
#else
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
#define COMMONSAMPLE_EXPORT __declspec( dllimport )
|
||||
#else
|
||||
#define COMMONSAMPLE_EXPORT
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#if !defined WNT
|
||||
#if !defined _WIN32
|
||||
#define QT_CLEAN_NAMESPACE /* avoid definition of INT32 and INT8 */
|
||||
#endif
|
||||
|
||||
@@ -187,7 +187,7 @@ void View::init()
|
||||
Window aWindowHandle = (Window )winId();
|
||||
Handle(Aspect_DisplayConnection) aDispConnection = myContext->CurrentViewer()->Driver()->GetDisplayConnection();
|
||||
Handle(Xw_Window) hWnd = new Xw_Window (aDispConnection, aWindowHandle);
|
||||
#endif // WNT
|
||||
#endif // _WIN32
|
||||
|
||||
myView->SetWindow (hWnd);
|
||||
if ( !hWnd->IsMapped() )
|
||||
|
Reference in New Issue
Block a user