Skip to content

Commit

Permalink
Fixed implementation of VariableDeclarationExpression::loadNativeFunc…
Browse files Browse the repository at this point in the history
…tion() for Windows target.
  • Loading branch information
nthnn committed Dec 13, 2024
1 parent a573b32 commit 99849d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/n8/ast/expression/VariableDeclarationExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ DynamicObject VariableDeclarationExpression::visit(SymbolTable& symbols) {
return {};
}
#include <iostream>
#include <locale>
NativeFunction VariableDeclarationExpression::loadNativeFunction(
std::string& libName,
std::string& funcName,
Expand Down Expand Up @@ -108,6 +109,8 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction(

handle = LoadLibraryA(library.c_str());
SetDllDirectoryW(wfolderPath);

std::wcout.imbue(std::locale("en_US.UTF-8"));
std::cout << "Loading DLLs from: ";
std::wcout << wfolderPath;
std::cout << std::endl;
Expand Down

0 comments on commit 99849d9

Please sign in to comment.