mirror of
https://github.com/fumiama/simple-protobuf.git
synced 2026-06-23 20:16:30 +08:00
增加BE,修正write num
This commit is contained in:
@@ -4,10 +4,9 @@ project(simple-protobuf)
|
||||
include(TestBigEndian)
|
||||
test_big_endian(isBigEndian)
|
||||
if (${isBigEndian})
|
||||
add_library(spb SHARED protobuf_be.c)
|
||||
else()
|
||||
add_library(spb SHARED protobuf_le.c)
|
||||
add_definitions(-DWORDS_BIGENDIAN)
|
||||
endif()
|
||||
|
||||
add_library(spb SHARED protobuf.c)
|
||||
add_executable(test test.c)
|
||||
target_link_libraries(test spb)
|
||||
Reference in New Issue
Block a user