summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex')
-rw-r--r--Master/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex17
1 files changed, 10 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex b/Master/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
index 0c11f544594..fd3eea1b0bf 100644
--- a/Master/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
+++ b/Master/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
@@ -7,17 +7,20 @@
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.
-\ifx\pgfmathsetlength\undefined
+
+% Guard against reading twice
+\ifx\pgfmathloaded\pgfutil@undefined
+ \let\pgfmathloaded=\relax
\else
\expandafter\endinput
\fi
-\input pgfmathcalc.code.tex
-
-\ifx\pgfkeysloaded\undefined
- \let\pgfkeysloaded=\relax
-\else
- \expandafter\input pgfmathfloat.code.tex
+% We need keys:
+\ifx\pgfkeysloaded\pgfutil@undefined
+ \input pgfkeys.code.tex
\fi
+\input pgfmathcalc.code.tex
+\input pgfmathfloat.code.tex
+
\endinput \ No newline at end of file