Skip to content

Commit

Permalink
Fixes for MacOS build with Qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin committed Feb 6, 2023
1 parent 641da36 commit 80bb1d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/QZXingLive/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Application::Application()
connect(this, &Application::onPermissionsDenied,
this, &Application::initializeQML);

#if QT_VERSION < 0x060000
#if defined(Q_OS_ANDROID) && QT_VERSION < 0x060000
NativeHelpers::registerApplicationInstance(this);
#endif
}
Expand Down
6 changes: 1 addition & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,10 @@ if(WIN32)
if(MSVC)
add_definitions(-D__STDC_LIMIT_MACROS)
endif(MSVC)

else()
add_definitions(-DNO_ICONV)
endif(WIN32)

if(ANDROID)
add_definitions(-DNO_ICONV)
endif()

if(VS_WINRT_COMPONENT)
add_definitions(-DNO_ICONV)
endif(VS_WINRT_COMPONENT)
Expand Down

0 comments on commit 80bb1d2

Please sign in to comment.