mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-20 23:00:29 +00:00
329eae5605
This replaces tests for __cplusplus >= 201103L, which are wrong with gcc 4.6 and earlier. Indeed these versions of gcc define __cplusplus = 1. Reference: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773
37 lines
570 B
C++
37 lines
570 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file functional.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Peter Kümmel
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef LYX_FUNCTIONAL_H
|
|
#define LYX_FUNCTIONAL_H
|
|
|
|
#ifdef LYX_USE_CXX11
|
|
|
|
#include <functional>
|
|
#define LYX_FUNCTIONAL_NS std
|
|
|
|
#else
|
|
|
|
#include <boost/function.hpp>
|
|
#include <boost/functional.hpp>
|
|
#define LYX_FUNCTIONAL_NS boost
|
|
|
|
#endif
|
|
|
|
namespace lyx
|
|
{
|
|
using LYX_FUNCTIONAL_NS::function;
|
|
}
|
|
|
|
#undef LYX_FUNCTIONAL_NS
|
|
|
|
|
|
#endif
|