summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-10-06 09:58:03 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-10-06 09:58:03 +0200
commit1bd4170ed7b397002537b1427ae4cb5bcb36fa4b (patch)
tree068379132ab27f4b5b6e71f58bb6779e58a6f300 /dev
parent3a7c5cd22a1c4ac5feb2ebcd95970d68f278cf12 (diff)
IMP: New API fixes and String typedef.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'dev')
-rw-r--r--dev/ndk/Defines.hxx11
-rw-r--r--dev/ndk/ReadMe.md4
2 files changed, 11 insertions, 4 deletions
diff --git a/dev/ndk/Defines.hxx b/dev/ndk/Defines.hxx
index 097ab0b..c783ae6 100644
--- a/dev/ndk/Defines.hxx
+++ b/dev/ndk/Defines.hxx
@@ -94,12 +94,15 @@ namespace NDK
{
inline constexpr int cBaseYear = 1900;
- inline std::string current_date() noexcept
+ typedef std::string String;
+
+ inline String current_date() noexcept
{
auto time_data = time(nullptr);
auto time_struct = gmtime(&time_data);
- std::string fmt = std::to_string(cBaseYear + time_struct->tm_year);
+ String fmt = std::to_string(cBaseYear + time_struct->tm_year);
+
fmt += "-";
fmt += std::to_string(time_struct->tm_mon + 1);
fmt += "-";
@@ -148,6 +151,8 @@ typedef char char_type;
#define NDK_MODULE(name) extern "C" int name(int argc, char** argv)
-#pragma scalar_storage_order big - endian
+#ifdef MSVC
+#pragma scalar_storage_order big-endian
+#endif // ifdef MSVC
#endif /* ifndef __NDK_DEFINES_HXX__ */
diff --git a/dev/ndk/ReadMe.md b/dev/ndk/ReadMe.md
index 657fae9..a916958 100644
--- a/dev/ndk/ReadMe.md
+++ b/dev/ndk/ReadMe.md
@@ -1,5 +1,7 @@
-# NDK Compiler DLL
+# NDK Compiler DLL.
## Compiler, Assembler and Linker DLL.
This contains a set of tools necessary to compile a ZKA program.
+
+###### Copyright ZKA Technologies, all rights reserved.