Added
Link Here
|
1 |
--- host_applications/linux/apps/raspicam/RaspiStillYUV.c.orig 2022-06-28 11:40:06 UTC |
2 |
+++ host_applications/linux/apps/raspicam/RaspiStillYUV.c |
3 |
@@ -46,9 +46,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D |
4 |
* We use the RaspiPreview code to handle the generic preview |
5 |
*/ |
6 |
|
7 |
-// We use some GNU extensions (basename) |
8 |
-#define _GNU_SOURCE |
9 |
- |
10 |
+#include <libgen.h> |
11 |
#include <stdio.h> |
12 |
#include <stdlib.h> |
13 |
#include <string.h> |
14 |
@@ -287,7 +285,7 @@ static void dump_status(RASPISTILLYUV_STATE *state) |
15 |
* @param state Pointer to state structure to assign any discovered parameters to |
16 |
* @return non-0 if failed for some reason, 0 otherwise |
17 |
*/ |
18 |
-static int parse_cmdline(int argc, const char **argv, RASPISTILLYUV_STATE *state) |
19 |
+static int parse_cmdline(int argc, char **argv, RASPISTILLYUV_STATE *state) |
20 |
{ |
21 |
// Parse the command line arguments. |
22 |
// We are looking for --<something> or -<abbreviation of something> |
23 |
@@ -1186,7 +1184,7 @@ static void rename_file(RASPISTILLYUV_STATE *state, FI |
24 |
/** |
25 |
* main |
26 |
*/ |
27 |
-int main(int argc, const char **argv) |
28 |
+int main(int argc, char **argv) |
29 |
{ |
30 |
// Our main data storage vessel.. |
31 |
RASPISTILLYUV_STATE state; |