https://git.reactos.org/?p=reactos.git;a=commitdiff;h=40d444919e3f0cc54f11ad0cfec001f384ceea90

commit 40d444919e3f0cc54f11ad0cfec001f384ceea90
Author:     Timo Kreuzer <timo.kreu...@reactos.org>
AuthorDate: Sat Oct 7 12:32:12 2023 +0300
Commit:     Timo Kreuzer <timo.kreu...@reactos.org>
CommitDate: Tue Oct 17 09:41:18 2023 +0300

    [SDK] Move definition of MyInt128 into stubs.h
---
 sdk/include/reactos/stubs.h   | 7 +++++++
 sdk/tools/spec2def/spec2def.c | 7 -------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/sdk/include/reactos/stubs.h b/sdk/include/reactos/stubs.h
index 5b872fbe47c..b5e1517f104 100644
--- a/sdk/include/reactos/stubs.h
+++ b/sdk/include/reactos/stubs.h
@@ -31,6 +31,13 @@ typedef struct _EXCEPTION_RECORD {
 #define EXCEPTION_WINE_STUB     0x80000100
 #define EH_NONCONTINUABLE       0x01
 
+/* __int128 is not supported on x86, so use a custom type */
+typedef struct
+{
+    __int64 lower;
+    __int64 upper;
+} MyInt128;
+
 void
 __stdcall
 RtlRaiseException(
diff --git a/sdk/tools/spec2def/spec2def.c b/sdk/tools/spec2def/spec2def.c
index 2ec775cc390..2eae6bb0170 100644
--- a/sdk/tools/spec2def/spec2def.c
+++ b/sdk/tools/spec2def/spec2def.c
@@ -228,13 +228,6 @@ OutputHeader_stub(FILE *file)
         fprintf(file, "WINE_DECLARE_DEBUG_CHANNEL(relay);\n");
     }
 
-    /* __int128 is not supported on x86, so use a custom type */
-    fprintf(file, "\n"
-                  "typedef struct {\n"
-                  "    __int64 lower;\n"
-                  "    __int64 upper;\n"
-                  "} MyInt128;\n");
-
     fprintf(file, "\n");
 }
 

Reply via email to