Skip to content

Commit a28347e

Browse files
Merge pull request #112 from valnoel/fix_build_windows
Fix build windows
2 parents 5f11431 + 180f316 commit a28347e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/optionChecker/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include_directories(${AVTRANSCODER_SRC_PATH} ${FFMPEG_INCLUDE_DIR})
99
# Add C++11 flag
1010
if(NOT WIN32)
1111
set(CMAKE_CXX_FLAGS "-std=c++0x")
12-
elseif(NOT MSVC12)
12+
elseif(${MSVC_VERSION} LESS 1800)
1313
message("C++11 not supported, will not build avOptionChecker app.")
1414
return()
1515
endif()

app/presetChecker/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include_directories(${AVTRANSCODER_SRC_PATH} ${FFMPEG_INCLUDE_DIR})
99
# Add C++11 flag
1010
if(NOT WIN32)
1111
set(CMAKE_CXX_FLAGS "-std=c++0x")
12-
elseif(NOT MSVC12)
12+
elseif(${MSVC_VERSION} LESS 1800)
1313
message("C++11 not supported, will not build avPresetChecker app.")
1414
return()
1515
endif()

src/AvTranscoder/option/CodecContext.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace avtranscoder
1212
* @brief Wrapper of an AVCodecContext.
1313
* @note The AVCodecContext is allocated and free by the class. It is not the case of the base class.
1414
*/
15-
class CodecContext : public Context
15+
class AvExport CodecContext : public Context
1616
{
1717
public:
1818
CodecContext( int req_flags = 0 );

src/AvTranscoder/option/Context.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace avtranscoder
1515
* @brief Wrapper of AVContext.
1616
* Can access Options through the corresponding context.
1717
*/
18-
class Context
18+
class AvExport Context
1919
{
2020
public:
2121
Context() {}

0 commit comments

Comments
 (0)