diff --git a/pixel.cpp b/pixel.cpp
index 5a16e18358f46d96f875c6af8701c34c19ac1c18..d96b31fa3aaf8db4cbfce376f48aa3f348a78195 100644
--- a/pixel.cpp
+++ b/pixel.cpp
@@ -1,7 +1,7 @@
 #include <iostream>
 #include <hls_stream.h>
 #include <ap_axi_sdata.h>
-#include <cmath>
+#include <math.h>
 
 using namespace std;