Example and util compile fine.

This commit is contained in:
WangYi 2018-03-18 02:06:38 +08:00 committed by Unknown
parent 82f23c411d
commit e21fab3685
7 changed files with 1343 additions and 1 deletions

View file

@ -41,6 +41,9 @@ FOREACH(source ${UTILS-SOURCES})
LIST(APPEND TARGETS ../contrib/win32/stdlib)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../contrib/win32)
ENDIF(${source} MATCHES "nfc-scan-device")
IF(${source} MATCHES "nfc-read-forum-tag3")
LIST(APPEND TARGETS ${CMAKE_CURRENT_SOURCE_DIR}/../contrib/win32/getopt.c)
ENDIF()
ENDIF(WIN32)
ADD_EXECUTABLE(${source} ${TARGETS})

View file

@ -62,7 +62,7 @@
#include "nfc-utils.h"
#if defined(WIN32) && defined(__GNUC__) /* mingw compiler */
#if defined(WIN32) /* mingw compiler */
#include <getopt.h>
#endif