修正posix系统下编译失败的bug

This commit is contained in:
xiongziliang 2017-08-10 14:06:51 +08:00
parent c13d18a352
commit ec6edb5f24
3 changed files with 10 additions and 1 deletions

View File

@ -68,7 +68,7 @@ endif(MP4V2_FOUND)
#x264
find_package(X264 QUIET)
if(X264_FOUND)
message(STATUS "找到x264库:\"${X264_INCLUDE_DIR}\",ENABLE_X264宏已打开")
message(STATUS "找到x264库:\"${X264_INCLUDE_DIRS}\",ENABLE_X264宏已打开")
include_directories(${X264_INCLUDE_DIRS})
add_definitions(-DENABLE_X264)
list(APPEND LINK_LIB_LIST ${X264_LIBRARIES})

View File

@ -5,6 +5,10 @@
* Author: xzl
*/
#if !defined(_WIN32)
#include <dirent.h>
#endif //!defined(_WIN32)
#include <stdio.h>
#include <sys/stat.h>
#include <algorithm>
@ -19,6 +23,7 @@
#include "Util/mini.h"
#include "Util/NoticeCenter.h"
using namespace ZL::Util;
namespace ZL {

View File

@ -8,6 +8,10 @@
#ifndef SRC_SHELL_CMD_H_
#define SRC_SHELL_CMD_H_
#if !defined(_WIN32)
#include <getopt.h>
#endif //!defined(_WIN32)
#include <string>
#include <vector>
#include <iostream>