From 7e84238389d57060dba3e47625da0a43f117eda7 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Wed, 25 Jan 2012 10:18:19 -0600 Subject: windows and unix have different argv definitions --- xxxterm.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/xxxterm.c b/xxxterm.c index a84aca5..31cee7a 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -222,9 +222,16 @@ void set_current_tab(int page_num); gboolean update_statusbar_position(GtkAdjustment*, gpointer); void marks_clear(struct tab *t); +/* windows uses a different argv declaration */ +#if __MINGW32__ +#define ARGV_TYPE const char ** +#else +#define ARGV_TYPE char * const * +#endif + /* globals */ extern char *__progname; -char * const *start_argv; +ARGV_TYPE start_argv; struct passwd *pwd; GtkWidget *main_window; GtkNotebook *notebook; @@ -7321,7 +7328,7 @@ main(int argc, char **argv) FILE *f = NULL; struct karg a; - start_argv = (char * const *)argv; + start_argv = (ARGV_TYPE)argv; /* prepare gtk */ #ifdef USE_THREADS -- cgit 1.4.1-2-gfad0 h tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/mu.vim
blob: 90d130e3514425be187f3c26324480819e45c1e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68