I only work with a small subset of files in the /C directory, but I have been able to insert SDK 19 code into my projects with the following files modified.
After copying files from /C in lzma SDK 19.00
Edit MtCoder.h and uncomment /* #define MTCODER__USE_WRITE_THREAD */
Copy over Threads.c and Threads.h from p7zip 16.02
Edit Threads.h and add this line around line 90 #define Semaphore_IsCreated(p) ((CSemaphore *) (p) != NULL)
YMMV, but these small changes allowed me to use SDK 19 in my code. Hope this helps.
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But I still get lots of errors. I guess p7zip is bit too complicated and so far behind that it's not going to be this easy.
Last edit: Sam Tansy 2021-04-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2021-04-04
No Sam. The 19.00 SDK is not consistent with p7zip. You must use SDK 19.00 files. I was not able to upgrade p7zip. However, I limited myself to the C code and a small subset of LZMA files.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I only work with a small subset of files in the /C directory, but I have been able to insert SDK 19 code into my projects with the following files modified.
After copying files from /C in lzma SDK 19.00
Edit MtCoder.h and uncomment
/* #define MTCODER__USE_WRITE_THREAD */
Copy over Threads.c and Threads.h from p7zip 16.02
Edit Threads.h and add this line around line 90
#define Semaphore_IsCreated(p) ((CSemaphore *) (p) != NULL)
YMMV, but these small changes allowed me to use SDK 19 in my code. Hope this helps.
I have tried that with p7zip.
So there are changes to MtCoder. and
and to 7zTypes.h v19.00:
```diff
--- 7z1900-src/C/7zTypes.h 2018-08-04 15:00:00.000000000 +0200
+++ p7zip_16.04+lzma-19.00/C/7zTypes.h 2021-04-04 01:39:57.000000000 +0200
@@ -104,7 +104,7 @@ typedef size_t SizeT;
#endif
typedef int BoolInt;
-/ typedef BoolInt Bool; /
+typedef BoolInt Bool;
#define True 1
#define False 0
```
But I still get lots of errors. I guess p7zip is bit too complicated and so far behind that it's not going to be this easy.
Last edit: Sam Tansy 2021-04-04
No Sam. The 19.00 SDK is not consistent with p7zip. You must use SDK 19.00 files. I was not able to upgrade p7zip. However, I limited myself to the C code and a small subset of LZMA files.