Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/image/GaussianFilter.h')
-rw-r--r--source/blender/freestyle/intern/image/GaussianFilter.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/image/GaussianFilter.h b/source/blender/freestyle/intern/image/GaussianFilter.h
index 82007dba1d1..b300ec00989 100644
--- a/source/blender/freestyle/intern/image/GaussianFilter.h
+++ b/source/blender/freestyle/intern/image/GaussianFilter.h
@@ -33,6 +33,12 @@
#include "../system/FreestyleConfig.h"
+extern "C" {
+#include "BLI_math.h"
+}
+
+namespace Freestyle {
+
class LIB_IMAGE_EXPORT GaussianFilter
{
protected:
@@ -119,8 +125,6 @@ protected:
*/
-#include <math.h>
-
#ifdef __MACH__
# define sqrtf(x) (sqrt(x))
#endif
@@ -152,4 +156,6 @@ float GaussianFilter::getSmoothedPixel(Map *map, int x, int y)
return L;
}
+} /* namespace Freestyle */
+
#endif // __GAUSSIANFILTER_H__