Skip to content

Commit

Permalink
Change include of config.h in export macros
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerKuemmerle committed Dec 8, 2024
1 parent 4c6c659 commit 9b3b3e8
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 22 deletions.
3 changes: 1 addition & 2 deletions g2o/core/g2o_core_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
#ifndef G2O_CORE_API_H
#define G2O_CORE_API_H

#include "g2o/config.h"

#ifdef _MSC_VER
#include "g2o/config.h"
// We are using a Microsoft compiler:
#ifdef G2O_SHARED_LIBS
#ifdef core_EXPORTS
Expand Down
3 changes: 1 addition & 2 deletions g2o/stuff/g2o_stuff_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@
#ifndef G2O_STUFF_API_H
#define G2O_STUFF_API_H

#include "g2o/config.h"

#ifdef _MSC_VER
// We are using a Microsoft compiler:

#include "g2o/config.h"
#ifdef G2O_SHARED_LIBS
#ifdef stuff_EXPORTS
#define G2O_STUFF_API __declspec(dllexport)
Expand Down
3 changes: 1 addition & 2 deletions g2o/types/data/g2o_types_data_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@
#ifndef G2O_TYPES_DATA_API_H
#define G2O_TYPES_DATA_API_H

#include "g2o/config.h"

#ifdef _MSC_VER
// We are using a Microsoft compiler:
#include "g2o/config.h"
#ifdef G2O_SHARED_LIBS
#ifdef types_data_EXPORTS
#define G2O_TYPES_DATA_API __declspec(dllexport)
Expand Down
3 changes: 1 addition & 2 deletions g2o/types/icp/g2o_types_icp_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@
#ifndef G2O_TYPES_ICP_API_H
#define G2O_TYPES_ICP_API_H

#include "g2o/config.h"

#ifdef _MSC_VER
#include "g2o/config.h"
// We are using a Microsoft compiler:
#ifdef G2O_SHARED_LIBS
#ifdef types_icp_EXPORTS
Expand Down
3 changes: 1 addition & 2 deletions g2o/types/sba/g2o_types_sba_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@
#ifndef G2O_TYPES_SBA_API_H
#define G2O_TYPES_SBA_API_H

#include "g2o/config.h"

#ifdef _MSC_VER
#include "g2o/config.h"
// We are using a Microsoft compiler:
#ifdef G2O_SHARED_LIBS
#ifdef types_sba_EXPORTS
Expand Down
3 changes: 1 addition & 2 deletions g2o/types/sclam2d/g2o_types_sclam2d_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@
#ifndef G2O_TYPES_SCLAM2D_API_H
#define G2O_TYPES_SCLAM2D_API_H

#include "g2o/config.h"

#ifdef _MSC_VER
#include "g2o/config.h"
// We are using a Microsoft compiler:
#ifdef G2O_SHARED_LIBS
#ifdef types_sclam2d_EXPORTS
Expand Down
3 changes: 1 addition & 2 deletions g2o/types/sim3/types_seven_dof_expmap_api.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#ifndef G2O_TYPES_SEVEN_DOF_EXPMAP_API_H
#define G2O_TYPES_SEVEN_DOF_EXPMAP_API_H

#include "g2o/config.h"

#ifdef _MSC_VER
#include "g2o/config.h"
// We are using a Microsoft compiler:
#ifdef G2O_SHARED_LIBS
#ifdef types_sim3_EXPORTS
Expand Down
3 changes: 1 addition & 2 deletions g2o/types/slam2d/g2o_types_slam2d_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@
#ifndef G2O_TYPES_SLAM2D_API_H
#define G2O_TYPES_SLAM2D_API_H

#include "g2o/config.h"

#ifdef _MSC_VER
#include "g2o/config.h"
// We are using a Microsoft compiler:
#ifdef G2O_SHARED_LIBS
#ifdef types_slam2d_EXPORTS
Expand Down
3 changes: 1 addition & 2 deletions g2o/types/slam2d_addons/g2o_types_slam2d_addons_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@
#ifndef G2O_TYPES_SLAM2D_ADDONS_API_H
#define G2O_TYPES_SLAM2D_ADDONS_API_H

#include "g2o/config.h"

#ifdef _MSC_VER
// We are using a Microsoft compiler:
#include "g2o/config.h"
#ifdef G2O_SHARED_LIBS
#ifdef types_slam2d_addons_EXPORTS
#define G2O_TYPES_SLAM2D_ADDONS_API __declspec(dllexport)
Expand Down
3 changes: 1 addition & 2 deletions g2o/types/slam3d/g2o_types_slam3d_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@
#ifndef G2O_TYPES_SLAM3D_API_H
#define G2O_TYPES_SLAM3D_API_H

#include "g2o/config.h"

#ifdef _MSC_VER
#include "g2o/config.h"
// We are using a Microsoft compiler:
#ifdef G2O_SHARED_LIBS
#ifdef types_slam3d_EXPORTS
Expand Down
3 changes: 1 addition & 2 deletions g2o/types/slam3d_addons/g2o_types_slam3d_addons_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@
#ifndef G2O_TYPES_SLAM3D_ADDONS_API_H
#define G2O_TYPES_SLAM3D_ADDONS_API_H

#include "g2o/config.h"

#ifdef _MSC_VER
// We are using a Microsoft compiler:
#include "g2o/config.h"
#ifdef G2O_SHARED_LIBS
#ifdef types_slam3d_addons_EXPORTS
#define G2O_TYPES_SLAM3D_ADDONS_API __declspec(dllexport)
Expand Down

0 comments on commit 9b3b3e8

Please sign in to comment.