[x264-devel] [PATCH 11/32] cpu: Decouple module from common.h

Vittorio Giovara vittorio.giovara at gmail.com
Fri Jan 20 15:20:36 CET 2017


---
 common/cpu.c | 5 ++++-
 common/cpu.h | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/common/cpu.c b/common/cpu.c
index 653b761..487f876 100644
--- a/common/cpu.c
+++ b/common/cpu.c
@@ -25,7 +25,10 @@
  * For more information, contact us at licensing at x264.com.
  *****************************************************************************/
 
-#include "common.h"
+#include "cpu.h"
+#include "log.h"
+#include "x264.h"
+#include <assert.h>
 
 #if HAVE_POSIXTHREAD && SYS_LINUX
 #include <sched.h>
diff --git a/common/cpu.h b/common/cpu.h
index 1381419..64ab42f 100644
--- a/common/cpu.h
+++ b/common/cpu.h
@@ -26,6 +26,8 @@
 #ifndef X264_CPU_H
 #define X264_CPU_H
 
+#include "osdep.h"
+
 uint32_t x264_cpu_detect( void );
 int      x264_cpu_num_processors( void );
 void     x264_cpu_emms( void );
-- 
2.10.0



More information about the x264-devel mailing list