diff --git a/stack.c b/stack.c
index 4e59e8ffd8d72903f9987b1d0e49a498c79088f3..5ca7421a93564f12dfc650627e75a31355cbcbdf 100644
--- a/stack.c
+++ b/stack.c
@@ -1,5 +1,6 @@
 #include "stack.h"
-
+#include <stdio.h>
+#include <stdlib.h>
 
 #define DEFAULT_CAPACITY 4
 
diff --git a/stack.h b/stack.h
index 371cb4d127f380757b9d887fd2396939f6dc5755..a8f99c1dd7736f712c2ff51909186c272573c50e 100644
--- a/stack.h
+++ b/stack.h
@@ -1,6 +1,4 @@
-#include <stdlib.h>
 #include <stdbool.h>
-#include <stdio.h>
 
 #ifndef _STACK_H_
 #define _STACK_H_