Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Belvire
otb
Commits
5943e43d
Commit
5943e43d
authored
17 years ago
by
Thomas Feuvrier
Browse files
Options
Downloads
Patches
Plain Diff
Correction pour portage Visual !
parent
f1695597
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Utilities/otb6S/CMakeLists.txt
+5
-1
5 additions, 1 deletion
Utilities/otb6S/CMakeLists.txt
Utilities/otb6S/otb_6S_f2c.h
+11
-10
11 additions, 10 deletions
Utilities/otb6S/otb_6S_f2c.h
with
16 additions
and
11 deletions
Utilities/otb6S/CMakeLists.txt
+
5
−
1
View file @
5943e43d
...
...
@@ -11,7 +11,7 @@ INCLUDE_DIRECTORIES(${OTB6S_SOURCE_DIR})
# Inform header files they are being included from a source inside the
# otb_6S library.
#
ADD_DEFINITIONS(-DOTB_6S_SRC)
ADD_DEFINITIONS
(
-DOTB_6S_SRC
)
# On Microsoft Visual
IF
(
WIN32
)
...
...
@@ -38,6 +38,10 @@ FILE(GLOB OTB6S_SRCS "6SV1.0B/*.c" )
# Not use itkf2c because uncomplete for link 6S main exectuable
FILE
(
GLOB LIBF2C_SRCS
"libf2c/*.c"
)
#PB compil Visual: pb compatibilty with isatty function.
LIST
(
REMOVE_ITEM LIBF2C_SRCS
"
${
OTB6S_SOURCE_DIR
}
/libf2c/open.c"
)
LIST
(
REMOVE_ITEM LIBF2C_SRCS
"
${
OTB6S_SOURCE_DIR
}
/libf2c/inquire.c"
)
INCLUDE_DIRECTORIES
(
${
OTB6S_SOURCE_DIR
}
/libf2c
)
...
...
This diff is collapsed.
Click to expand it.
Utilities/otb6S/otb_6S_f2c.h
+
11
−
10
View file @
5943e43d
...
...
@@ -3,6 +3,17 @@
#ifndef otb_6S_f2c_h
#define otb_6S_f2c_h
/* Disable some warnings inside otb_6S sources. */
#ifdef OTB_6S_SRC
# if defined(_MSC_VER)
# pragma warning (disable: 4244)
/* conversion with possible loss of data */
# if !defined(_COMPLEX_DEFINED)
struct
_complex
{
double
x
,
y
;
};
# define _COMPLEX_DEFINED
/* block math.h from defining complex macro */
# endif
# endif
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
@@ -15,16 +26,6 @@ extern "C" {
#if 0
/* Disable some warnings inside otb_6S sources. */
#ifdef OTB_6S_SRC
# if defined(_MSC_VER)
# pragma warning (disable: 4244) /* conversion with possible loss of data */
# if !defined(_COMPLEX_DEFINED)
struct _complex { double x,y; };
# define _COMPLEX_DEFINED /* block math.h from defining complex macro */
# endif
# endif
#endif
/* Mangle the f2c symbols and types to have a otb_6S prefix. */
#include "otb_6S_f2c_mangle.h"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment