-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(super-slicer): patch sources to build
- Loading branch information
Showing
3 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
modules/home-manager/desktop/super-slicer/0001-fix-broken-include.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/src/jpeg-compressor/jpge.cpp b/src/jpeg-compressor/jpge.cpp | ||
index f2605ad..8641ed5 100644 | ||
--- a/src/jpeg-compressor/jpge.cpp | ||
+++ b/src/jpeg-compressor/jpge.cpp | ||
@@ -30,8 +30,9 @@ | ||
|
||
#include "jpge.h" | ||
|
||
-#include <stdlib.h> | ||
-#include <string.h> | ||
+#include <cstdlib> | ||
+#include <cstring> | ||
+#include <cstdio> | ||
//#include <malloc.h> // not needed, even create bugs in macos | ||
|
||
#define JPGE_MAX(a,b) (((a)>(b))?(a):(b)) | ||
@@ -934,7 +935,6 @@ namespace jpge { | ||
} | ||
|
||
// Higher level wrappers/examples (optional). | ||
-#include <stdio.h> | ||
|
||
class cfile_stream : public output_stream | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters