Skip to content

Commit

Permalink
Merge pull request ethereum#92 from ethereum/cxx98compat
Browse files Browse the repository at this point in the history
Fix compatibility with C++98
  • Loading branch information
axic authored Aug 27, 2018
2 parents e7f313d + 978a640 commit e34ea20
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ enum evmc_storage_status
/**
* A storage item has been deleted: X -> 0.
*/
EVMC_STORAGE_DELETED = 3,
EVMC_STORAGE_DELETED = 3
};


Expand Down
8 changes: 8 additions & 0 deletions test/integration/compilation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ set_target_properties(test-compile-c99 PROPERTIES C_STANDARD 99 C_EXTENSIONS OFF
add_library(test-compile-c11 STATIC ${PROJECT_SOURCE_DIR}/include/evmc/evmc.h compilation_test.c)
target_link_libraries(test-compile-c11 PRIVATE evmc)
set_target_properties(test-compile-c11 PROPERTIES C_STANDARD 11 C_EXTENSIONS OFF)

add_library(test-compile-cxx98 STATIC compilation_test.cpp)
target_link_libraries(test-compile-cxx98 PRIVATE evmc)
set_target_properties(test-compile-cxx98 PROPERTIES CXX_STANDARD 98 CXX_EXTENSIONS OFF)

add_library(test-compile-cxx11 STATIC compilation_test.cpp)
target_link_libraries(test-compile-cxx11 PRIVATE evmc)
set_target_properties(test-compile-cxx11 PROPERTIES CXX_STANDARD 11 CXX_EXTENSIONS OFF)
8 changes: 8 additions & 0 deletions test/integration/compilation/compilation_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* EVMC: Ethereum Client-VM Connector API.
* Copyright 2018 The EVMC Authors.
* Licensed under the Apache License, Version 2.0. See the LICENSE file.
*/

#include <evmc/evmc.h>
#include <evmc/utils.h>

0 comments on commit e34ea20

Please sign in to comment.