Allow 'deluge_core.cpp' to be compiled without NDEBUG defined. Patch
from plisk.
This commit is contained in:
parent
c87d165a1f
commit
8ee99ee9a1
|
@ -305,9 +305,14 @@ static PyObject *torrent_pre_init(PyObject *self, PyObject *args)
|
||||||
|
|
||||||
static PyObject *torrent_init(PyObject *self, PyObject *args)
|
static PyObject *torrent_init(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
printf("deluge_core; using libtorrent %s. Compiled with NDEBUG value: %d\r\n",
|
printf("deluge_core; using libtorrent %s. Compiled %s NDEBUG.\r\n",
|
||||||
LIBTORRENT_VERSION,
|
LIBTORRENT_VERSION,
|
||||||
NDEBUG);
|
#ifdef NDEBUG
|
||||||
|
"with"
|
||||||
|
#else
|
||||||
|
"without"
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
// Tell Boost that we are on *NIX, so bloody '.'s are ok inside a directory name!
|
// Tell Boost that we are on *NIX, so bloody '.'s are ok inside a directory name!
|
||||||
boost::filesystem::path::default_name_check(empty_name_check);
|
boost::filesystem::path::default_name_check(empty_name_check);
|
||||||
|
|
Loading…
Reference in New Issue