config: Added c/common.h and move check for uint8_t into there.
diff --git a/ndn-cpp/c/common.h b/ndn-cpp/c/common.h
new file mode 100644
index 0000000..23a604c
--- /dev/null
+++ b/ndn-cpp/c/common.h
@@ -0,0 +1,32 @@
+/**
+ * Copyright (C) 2013 Regents of the University of California.
+ * @author: Jeff Thompson <jefft0@remap.ucla.edu>
+ * See COPYING for copyright and distribution information.
+ */
+
+#ifndef NDN_COMMON_H
+#define	NDN_COMMON_H
+
+#include "../../config.h"
+
+// Need to define uint8_t.  There may be no stdint.h because it is only part of the C standard since 1999.
+#if HAVE_STDINT
+#include <stdint.h>
+#else
+#endif
+#ifndef _UINT8_T
+#define _UINT8_T
+typedef unsigned char uint8_t;
+#endif
+
+#ifdef	__cplusplus
+extern "C" {
+#endif
+
+
+
+#ifdef	__cplusplus
+}
+#endif
+
+#endif
diff --git a/ndn-cpp/common.hpp b/ndn-cpp/common.hpp
index 8a23ad0..0ed219c 100644
--- a/ndn-cpp/common.hpp
+++ b/ndn-cpp/common.hpp
@@ -8,7 +8,8 @@
 #define NDN_COMMON_HPP
 
 #include <vector>
-#include "../config.h"
+// common.h includes config.h.
+#include "c/common.h"
 
 // Depending on where ./configure found shared_ptr, define the ptr_lib namespace.
 // We always use ndn::ptr_lib.
@@ -49,15 +50,6 @@
 namespace ndn { namespace func_lib = ndnboost; }
 #endif
 
-// Need to define uint8_t.  There may be no stdint.h since since it is only part of the C standard since 1999.
-#if HAVE_STDINT
-#include <stdint.h>
-#else
-#endif
-#ifndef _UINT8_T
-#define _UINT8_T
-typedef unsigned char uint8_t;
-#endif
 namespace ndn {
    
 /**