Skip to content

Commit

Permalink
1. support mingw now
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Jun 20, 2016
1 parent ae9ad84 commit 27e938f
Show file tree
Hide file tree
Showing 8 changed files with 735 additions and 686 deletions.
19 changes: 13 additions & 6 deletions include/libcopp/stack/stack_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,27 @@
#include "allocator/stack_allocator_split_segment.h"
#endif

#ifdef COPP_MACRO_COMPILER_MSVC
#include "allocator/stack_allocator_windows.h"
#ifdef COPP_MACRO_SYS_POSIX
#include "allocator/stack_allocator_posix.h"
namespace copp {
namespace allocator {
typedef stack_allocator_windows default_statck_allocator;
typedef stack_allocator_posix default_statck_allocator;
}
}
#else
#include "allocator/stack_allocator_posix.h"

#elif defined(COPP_MACRO_SYS_WIN)

#include "allocator/stack_allocator_windows.h"
namespace copp {
namespace allocator {
typedef stack_allocator_posix default_statck_allocator;
typedef stack_allocator_windows default_statck_allocator;
}
}

#else

#error unknown stack allocator

#endif

#endif /* STACK_ALLOCATOR_H_ */
Loading

0 comments on commit 27e938f

Please sign in to comment.