Skip to content
Snippets Groups Projects
Commit 51c49664 authored by Ben Boeckel's avatar Ben Boeckel Committed by Kitware Robot
Browse files

Merge topic 'fix-r-compilation'


2166c067 FiltersStatisticsGnuR: fix R_NO_REMAP juggling

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: default avatarBrad King <brad.king@kitware.com>
Merge-request: !437
parents f8d2a873 2166c067
No related merge requests found
......@@ -14,6 +14,8 @@ set(Module_SRCS
find_package(R)
include_directories(${R_INCLUDE_DIR})
add_definitions(-DVTK_BUILDING_FILTERS_STATISTICSGNUR)
# Configure the module specific settings into a module configured header.
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkFiltersStatisticsGnuRConfigure.h.in
${CMAKE_CURRENT_BINARY_DIR}/vtkFiltersStatisticsGnuRConfigure.h)
......
......@@ -48,6 +48,8 @@
#include <stdio.h>
#include <cassert>
#define R_NO_REMAP /* AVOID SOME SERIOUS STUPIDITY. DO NOT REMOVE. */
#include "R.h"
#include "Rdefines.h"
#include "R_ext/Parse.h"
......
......@@ -49,7 +49,9 @@
#include "vtkFiltersStatisticsGnuRModule.h" // For export macro
#include "vtkObject.h"
#ifndef VTK_BUILDING_FILTERS_STATISTICSGNUR
#define R_NO_REMAP /* Don't pollute the namespace (some of which conflict). DO NOT REMOVE. */
#endif
#include "Rinternals.h" // Needed for Rinternals.h SEXP data structure
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment