mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-05 21:02:42 +02:00
Revert "libgimpmath: #pragma once"
This reverts commit 74bf171611
.
See https://gitlab.gnome.org/GNOME/gimp/-/issues/14668
This commit is contained in:
@@ -18,7 +18,9 @@
|
||||
* <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef __GIMP_MATH_H__
|
||||
#define __GIMP_MATH_H__
|
||||
|
||||
|
||||
#include <math.h>
|
||||
|
||||
@@ -39,8 +41,10 @@
|
||||
|
||||
#undef __GIMP_MATH_H_INSIDE__
|
||||
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
/**
|
||||
* SECTION: gimpmath
|
||||
* @title: GimpMath
|
||||
@@ -142,4 +146,7 @@ G_BEGIN_DECLS
|
||||
**/
|
||||
#define gimp_rad_to_deg(angle) ((angle) * 360.0 / (2.0 * G_PI))
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GIMP_MATH_H__ */
|
||||
|
@@ -18,10 +18,13 @@
|
||||
* <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef __GIMP_MATH_TYPES_H__
|
||||
#define __GIMP_MATH_TYPES_H__
|
||||
|
||||
|
||||
#include <libgimpbase/gimpbasetypes.h>
|
||||
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
typedef struct _GimpMatrix2 GimpMatrix2;
|
||||
@@ -125,4 +128,7 @@ struct _GimpVector4
|
||||
gdouble x, y, z, w;
|
||||
};
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GIMP_MATH_TYPES_H__ */
|
||||
|
@@ -19,12 +19,13 @@
|
||||
* <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#if !defined (__GIMP_MATH_H_INSIDE__) && !defined (GIMP_MATH_COMPILATION)
|
||||
#error "Only <libgimpmath/gimpmath.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#ifndef __GIMP_MATRIX_H__
|
||||
#define __GIMP_MATRIX_H__
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
@@ -150,4 +151,7 @@ gdouble gimp_matrix4_transform_point (const GimpMatrix4 *matrix,
|
||||
gdouble *newy,
|
||||
gdouble *newz);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GIMP_MATRIX_H__ */
|
||||
|
@@ -22,12 +22,13 @@
|
||||
* <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#if !defined (__GIMP_MATH_H_INSIDE__) && !defined (GIMP_MATH_COMPILATION)
|
||||
#error "Only <libgimpmath/gimpmath.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#ifndef __GIMP_VECTOR_H__
|
||||
#define __GIMP_VECTOR_H__
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
@@ -153,4 +154,7 @@ void gimp_vector_3d_to_2d (gint sx,
|
||||
const GimpVector3 *vp,
|
||||
const GimpVector3 *p);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GIMP_VECTOR_H__ */
|
||||
|
Reference in New Issue
Block a user