Navigation Menu

Skip to content

Commit

Permalink
Move internal macros to .c from .h
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 10, 2015
1 parent 2174b44 commit 2a30745
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/grn_io.h
Expand Up @@ -24,16 +24,6 @@
extern "C" {
#endif

#ifdef WIN32
# ifdef WIN32_FMO_EACH
# define GRN_IO_FILE_SIZE 1073741824UL
# else /* FMO_EACH */
# define GRN_IO_FILE_SIZE 134217728L
# endif /* FMO_EACH */
#else /* WIN32 */
# define GRN_IO_FILE_SIZE 1073741824UL
#endif /* WIN32 */

#ifdef WIN32
# define GRN_IO_FILE_CREATE_MODE (GENERIC_READ | GENERIC_WRITE)
#else /* WIN32 */
Expand Down
10 changes: 10 additions & 0 deletions lib/io.c
Expand Up @@ -30,6 +30,16 @@

#define GRN_IO_IDSTR "GROONGA:IO:00001"

#ifdef WIN32
# ifdef WIN32_FMO_EACH
# define GRN_IO_FILE_SIZE 1073741824UL
# else /* FMO_EACH */
# define GRN_IO_FILE_SIZE 134217728L
# endif /* FMO_EACH */
#else /* WIN32 */
# define GRN_IO_FILE_SIZE 1073741824UL
#endif /* WIN32 */

#ifndef O_BINARY
# ifdef _O_BINARY
# define O_BINARY _O_BINARY
Expand Down

0 comments on commit 2a30745

Please sign in to comment.