Navigation Menu

Skip to content

Commit

Permalink
move common macro to mrn_macro.h
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 7, 2012
1 parent a63470e commit f86ba1d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Expand Up @@ -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 \
Expand Down
30 changes: 30 additions & 0 deletions mrn_macro.h
@@ -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 */
9 changes: 1 addition & 8 deletions mrn_sys.h
Expand Up @@ -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

Expand Down

0 comments on commit f86ba1d

Please sign in to comment.