Project

General

Profile

Actions

Bug #2060

closed

WITH_TESTS macro names conflict with NFD

Added by Alex Afanasyev about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
Base
Target version:
Start date:
10/13/2014
Due date:
% Done:

100%

Estimated time:
0.50 h

Description

Recently, we have added the following statement into ndn-cxx's common.hpp

#ifdef NDN_CXX_HAVE_TESTS
#define VIRTUAL_WITH_TESTS virtual
#define PUBLIC_WITH_TESTS_ELSE_PROTECTED public
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE public
#define PROTECTED_WITH_TESTS_ELSE_PRIVATE protected
#else
#define VIRTUAL_WITH_TESTS
#define PUBLIC_WITH_TESTS_ELSE_PROTECTED protected
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE private
#define PROTECTED_WITH_TESTS_ELSE_PRIVATE private
#endif

As a result, when ndn-cxx is compiled without tests, it prevents NFD from compiling with tests enabled.

Actions

Also available in: Atom PDF