complete largefile support
diff --git a/src/libFLAC/stream_encoder.c b/src/libFLAC/stream_encoder.c
index 2ff2f1c..6ecb872 100644
--- a/src/libFLAC/stream_encoder.c
+++ b/src/libFLAC/stream_encoder.c
@@ -32,6 +32,10 @@
/*@@@@@@*/
#undef WINDOW_DEBUG_OUTPUT
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <limits.h>
#include <stdio.h>
#include <stdlib.h> /* for malloc() */
@@ -51,10 +55,6 @@
#include "private/stream_encoder_framing.h"
#include "private/window.h"
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#ifdef min
#undef min
#endif