Added the weak ptr to the already existing macro
diff --git a/src/main/include/log4cxx/appender.h b/src/main/include/log4cxx/appender.h
index 9ebeb3e..d3c3b76 100644
--- a/src/main/include/log4cxx/appender.h
+++ b/src/main/include/log4cxx/appender.h
@@ -138,7 +138,6 @@
 };
 
 LOG4CXX_PTR_DEF(Appender);
-LOG4CXX_WEAK_PTR_DEF(Appender);
 LOG4CXX_LIST_DEF(AppenderList, AppenderPtr);
 
 }
diff --git a/src/main/include/log4cxx/log4cxx.h.in b/src/main/include/log4cxx/log4cxx.h.in
index a9747b7..b31368c 100644
--- a/src/main/include/log4cxx/log4cxx.h.in
+++ b/src/main/include/log4cxx/log4cxx.h.in
@@ -44,8 +44,8 @@
 
 #include "boost-std-configuration.h"
 
-#define LOG4CXX_PTR_DEF(T) typedef log4cxx::shared_ptr<T> T##Ptr
-#define LOG4CXX_WEAK_PTR_DEF(T) typedef log4cxx::weak_ptr<T> T##WeakPtr
+#define LOG4CXX_PTR_DEF(T) typedef log4cxx::shared_ptr<T> T##Ptr;\
+	typedef log4cxx::weak_ptr<T> T##WeakPtr
 #define LOG4CXX_LIST_DEF(N, T) typedef std::vector<T> N
 
 #if _WIN32