[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] move common macro to mrn_macro.h

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:38:48 JST 2012


Kouhei Sutou	2012-03-07 11:39:08 +0900 (Wed, 07 Mar 2012)

  New Revision: f86ba1d3ce7ac6265b2ea90faa308e8a49fc5398
  https://github.com/mroonga/mroonga/commit/f86ba1d3ce7ac6265b2ea90faa308e8a49fc5398

  Log:
    move common macro to mrn_macro.h

  Added files:
    mrn_macro.h
  Modified files:
    Makefile.am
    mrn_sys.h

  Modified: Makefile.am (+1 -0)
===================================================================
--- Makefile.am    2012-03-07 11:38:42 +0900 (8e2feb7)
+++ Makefile.am    2012-03-07 11:39:08 +0900 (c294263)
@@ -6,6 +6,7 @@ AM_CPPFLAGS = $(MYSQL_INC) $(GROONGA_CFLAGS) $(MYSQL_VERSION_CFLAGS)
 ACLOCAL_AMFLAGS = $$ACLOCAL_ARGS
 
 noinst_HEADERS =				\
+	mrn_macro.h				\
 	mrn_sys.h				\
 	ha_mroonga.h				\
 	mrn_table.h				\

  Added: mrn_macro.h (+30 -0) 100644
===================================================================
--- /dev/null
+++ mrn_macro.h    2012-03-07 11:39:08 +0900 (fbd7e99)
@@ -0,0 +1,30 @@
+/*
+  Copyright(C) 2012 Kouhei Sutou <kou �� clear-code.com>
+
+  This library is free software; you can redistribute it and/or
+  modify it under the terms of the GNU Lesser General Public
+  License as published by the Free Software Foundation; either
+  version 2.1 of the License, or (at your option) any later version.
+
+  This library is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  Lesser General Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with this library; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
+#ifndef _mrn_macro_h
+#define _mrn_marco_h
+
+#ifdef  __cplusplus
+# define MRN_BEGIN_DECLS  extern "C" {
+# define MRN_END_DECLS    }
+#else
+# define MRN_BEGIN_DECLS
+# define MRN_END_DECLS
+#endif
+
+#endif /* _mrn_macro_h */

  Modified: mrn_sys.h (+1 -8)
===================================================================
--- mrn_sys.h    2012-03-07 11:38:42 +0900 (05fad6c)
+++ mrn_sys.h    2012-03-07 11:39:08 +0900 (6346eef)
@@ -21,15 +21,8 @@
 #ifndef _mrn_sys_h
 #define _mrn_sys_h
 
-#ifdef  __cplusplus
-# define MRN_BEGIN_DECLS  extern "C" {
-# define MRN_END_DECLS    }
-#else
-# define MRN_BEGIN_DECLS
-# define MRN_END_DECLS
-#endif
-
 #include <groonga.h>
+#include "mrn_macro.h"
 
 MRN_BEGIN_DECLS
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index