minor C++ config fix - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/utils.h
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年10月21日 14:01:03 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年10月21日 14:01:03 +0200
commitc2531ad7f2dc7bfae6357bacc28e7f6a3591d48d (patch)
tree7526aab9ad6f287c00f16e01b822bc16e9587ded /agg-plot/utils.h
parenta851b6c64660aa2d51602a646a12231c60fbec1f (diff)
downloadgsl-shell-c2531ad7f2dc7bfae6357bacc28e7f6a3591d48d.tar.gz
minor C++ config fix
Diffstat (limited to 'agg-plot/utils.h')
-rw-r--r--agg-plot/utils.h 28
1 files changed, 19 insertions, 9 deletions
diff --git a/agg-plot/utils.h b/agg-plot/utils.h
index eec7d492..b68d3bed 100644
--- a/agg-plot/utils.h
+++ b/agg-plot/utils.h
@@ -1,18 +1,28 @@
#ifndef AGGPLOT_UTILS_H
#define AGGPLOT_UTILS_H
-#include <string>
#include "agg_trans_affine.h"
-template <class T>
-T max (T a, T b) {
- return (b < a) ? a : b;
-}
+#ifdef min
+#undef min
+#endif
+
+#ifdef max
+#undef max
+#endif
+
+
+template <typename T>
+T min(T a, T b)
+{
+ return (a < b) ? a : b;
+};
-template <class T>
-T min (T a, T b) {
- return (b > a) ? a : b;
-}
+template <typename T>
+T max(T a, T b)
+{
+ return (a > b) ? a : b;
+};
extern void trans_affine_compose (agg::trans_affine& a,
const agg::trans_affine& b);
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月14日 23:06:38 +0000

AltStyle によって変換されたページ (->オリジナル) /