Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Commit

Permalink
Fix Code Issues when Cross Compiling (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
edman007 authored and cedricve committed May 9, 2019
1 parent 63130cc commit 98c9ad6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/filewatcher/FileWatcherImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# define FILEWATCHER_PLATFORM FILEWATCHER_PLATFORM_WIN32
#elif defined(__APPLE_CC__) || defined(BSD)
# define FILEWATCHER_PLATFORM FILEWATCHER_PLATFORM_KQUEUE
#elif defined(__linux__)
#else
# define FILEWATCHER_PLATFORM FILEWATCHER_PLATFORM_LINUX
#endif

Expand Down
8 changes: 4 additions & 4 deletions src/filewatcher/Guard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ namespace FW

void Guard::start()
{
#if defined(__APPLE_CC__) || defined(BSD)
#if FILEWATCHER_PLATFORM == FILEWATCHER_PLATFORM_KQUEUE
std::string file = (m_file != "") ? m_directory + "/" + m_file : m_file;
#elif defined(__linux__)
#else
std::string file = m_file;
#endif

Expand All @@ -37,9 +37,9 @@ namespace FW

void Guard::startLookingForNewFiles()
{
#if defined(__APPLE_CC__) || defined(BSD)
#if FILEWATCHER_PLATFORM == FILEWATCHER_PLATFORM_KQUEUE
std::string file = (m_file != "") ? m_directory + "/" + m_file : m_file;
#elif defined(__linux__)
#else
std::string file = m_file;
#endif

Expand Down

0 comments on commit 98c9ad6

Please sign in to comment.