- void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
- itk::ThreadIdType threadId );
+#if ITK_VERSION_MAJOR >= 4
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId );
+#else
+ void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId );
+#endif
+