Skip to content

Commit

Permalink
Updating naming so it doesn't clash
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed Oct 14, 2023
1 parent 6ee2c0d commit 1efa448
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def gen_modules(version):
"python/src/GitSHA1.cpp",
"python/src/pyapproxmc.cpp",
"src/approxmc.cpp",
"src/constants.cpp",
"src/appmc_constants.cpp",
"src/counter.cpp",
"python/cryptominisat/python/src/GitSHA1.cpp",
"python/cryptominisat/src/bva.cpp",
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.cpp.in" "${CMAKE_CURRENT_BIN
set(approxmc_lib_files
approxmc.cpp
counter.cpp
constants.cpp
appmc_constants.cpp
${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp
)

Expand Down
2 changes: 1 addition & 1 deletion src/constants.cpp → src/appmc_constants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
THE SOFTWARE.
*/

#include "constants.h"
#include "appmc_constants.h"
#include <iostream>
#include <sstream>
#include <cassert>
Expand Down
5 changes: 1 addition & 4 deletions src/constants.h → src/appmc_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
THE SOFTWARE.
*/

#ifndef CONSTANTS_H__
#define CONSTANTS_H__
#pragma once

#include <cstdint>
#include <vector>
Expand Down Expand Up @@ -64,5 +63,3 @@ class Constants
};

}

#endif
2 changes: 1 addition & 1 deletion src/approxmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include "approxmc.h"
#include "counter.h"
#include "constants.h"
#include "appmc_constants.h"
#include "config.h"
#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion src/counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <cstdint>
#include <mutex>
#include "approxmc.h"
#include "constants.h"
#include "appmc_constants.h"

using std::string;
using std::vector;
Expand Down

0 comments on commit 1efa448

Please sign in to comment.