Skip to content

Commit c034e8d

Browse files
author
Cristy
committed
omp.h uses templating; it cannot appear in a C block with c++ compiler
1 parent 135e28b commit c034e8d

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

coders/tiff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,7 @@ static MagickBooleanType WritePTIFImage(const ImageInfo *image_info,
26832683
Property ptif:min-base[x][max-levels].
26842684
*/
26852685
RectangleInfo
2686-
pyramid_geometry = { 0.0, 0.0, 0.0, 0.0 };
2686+
pyramid_geometry = { 0, 0, 0, 0 };
26872687

26882688
MagickStatusType flags =
26892689
ParseAbsoluteGeometry(option,&pyramid_geometry);

magick/studio.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
#ifndef MAGICKCORE_STUDIO_H
1919
#define MAGICKCORE_STUDIO_H
2020

21+
#if defined(_OPENMP) && ((_OPENMP >= 200203) || defined(__OPENCC__))
22+
# include <omp.h>
23+
# define MAGICKCORE_OPENMP_SUPPORT 1
24+
#endif
25+
2126
#if defined(__cplusplus) || defined(c_plusplus)
2227
extern "C" {
2328
#endif
@@ -155,11 +160,6 @@ extern "C" {
155160
# define MAGICKCORE_OPENCL_SUPPORT 1
156161
#endif
157162

158-
#if defined(_OPENMP) && ((_OPENMP >= 200203) || defined(__OPENCC__))
159-
# include <omp.h>
160-
# define MAGICKCORE_OPENMP_SUPPORT 1
161-
#endif
162-
163163
#if defined(MAGICKCORE_HAVE_PREAD) && defined(MAGICKCORE_HAVE_DECL_PREAD) && !MAGICKCORE_HAVE_DECL_PREAD
164164
ssize_t pread(int,void *,size_t,off_t);
165165
#endif

wand/studio.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
#ifndef MAGICKWAND_STUDIO_H
1919
#define MAGICKWAND_STUDIO_H
2020

21+
#if defined(_OPENMP) && ((_OPENMP >= 200203) || defined(__OPENCC__))
22+
# include <omp.h>
23+
# define MAGICKCORE_OPENMP_SUPPORT 1
24+
#endif
25+
2126
#if defined(__cplusplus) || defined(c_plusplus)
2227
extern "C" {
2328
#endif
@@ -145,11 +150,6 @@ extern "C" {
145150
# define MAGICKCORE_OPENCL_SUPPORT 1
146151
#endif
147152

148-
#if defined(_OPENMP) && ((_OPENMP >= 200203) || defined(__OPENCC__))
149-
# include <omp.h>
150-
# define MAGICKCORE_OPENMP_SUPPORT 1
151-
#endif
152-
153153
#if defined(MAGICKCORE_HAVE_PREAD) && defined(MAGICKCORE_HAVE_DECL_PREAD) && !MAGICKCORE_HAVE_DECL_PREAD
154154
ssize_t pread(int,void *,size_t,off_t);
155155
#endif

0 commit comments

Comments
 (0)