Skip to content

Commit

Permalink
fixed a compilation issue on windows OS
Browse files Browse the repository at this point in the history
  • Loading branch information
imranashraf committed May 19, 2018
1 parent 93dfdce commit c351445
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openql/openql.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class Kernel
ql_kernel->display();
}

void gate(std::string name, std::vector<size_t> qubits={}, size_t duration=0, double angle=0.0)
void gate(std::string name, std::vector<size_t> qubits, size_t duration=0, double angle=0.0)
{
ql_kernel->gate(name, qubits, duration, angle);
}
Expand Down
4 changes: 2 additions & 2 deletions ql/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
size_t MAX_CYCLE = std::numeric_limits<int>::max();

#if defined(_WIN32)

#include <direct.h>
#else
#include <sys/types.h>
#include <sys/stat.h>
Expand All @@ -38,7 +38,7 @@ namespace ql
void make_output_dir(std::string dir)
{
#if defined(_WIN32)
_mkdir(strPath.c_str());
_mkdir(dir.c_str());
#else
mkdir(dir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
#endif
Expand Down

0 comments on commit c351445

Please sign in to comment.