Index: trunk/psLib/src/fft/psFFT.c
===================================================================
--- trunk/psLib/src/fft/psFFT.c	(revision 18956)
+++ trunk/psLib/src/fft/psFFT.c	(revision 18990)
@@ -9,10 +9,9 @@
 #include "psFFT.h"
 
-static int numThreads = 0;          // Number of threads to use with FFTW
-
 bool psFFTThreads(int threads)
 {
     PS_ASSERT_INT_NONNEGATIVE(threads, false);
-#ifdef HAVE_FFTW_THREADS
+#if HAVE_FFTW_THREADS
+    static int numThreads = 0;          // Number of threads to use with FFTW
     if (threads > 0) {
         if (numThreads == 0) {
