diff --git a/libavcodec/eval.h b/libavcodec/eval.h
index 5481b1407c72a7a8cd7a153bff3dff35f999566a..0d2cd70249e55384b1d3f49a6c9ddc39ccc0e8c9 100644
--- a/libavcodec/eval.h
+++ b/libavcodec/eval.h
@@ -28,6 +28,8 @@
 #ifndef AVCODEC_EVAL_H
 #define AVCODEC_EVAL_H
 
+typedef struct ff_expr_s AVEvalExpr;
+
 /**
  * Parses and evaluates an expression.
  * Note, this is significantly slower than ff_parse_eval()
@@ -47,8 +49,6 @@ double ff_eval2(const char *s, const double *const_value, const char * const *co
                double (**func2)(void *, double, double), const char **func2_name,
                void *opaque, const char **error);
 
-typedef struct ff_expr_s AVEvalExpr;
-
 /**
  * Parses a expression.
  * @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)"