Fossil SCM

accidently committed two unrelated files...

jan.nijtmans 2012-11-08 15:45 trunk
Commit b1199eb92bf09b55054d3a87ebc6fc40e8adc021
2 files changed +4 -4 +5 -5
+4 -4
--- src/main.c
+++ src/main.c
@@ -341,11 +341,11 @@
341341
if(g.db){
342342
db_close(0);
343343
}
344344
}
345345
346
-#if defined(_WIN32)
346
+#if defined(_WIN32) && !defined(__MINGW32__)
347347
/*
348348
** Parse the command-line arguments passed to windows. We do this
349349
** ourselves to work around bugs in the command-line parsing of MinGW.
350350
** It is possible (in theory) to only use this routine when compiling
351351
** with MinGW and to use built-in command-line parsing for MSVC and
@@ -454,11 +454,11 @@
454454
}
455455
argv[argc] = NULL;
456456
*argcPtr = argc;
457457
*((WCHAR ***)argvPtr) = argv;
458458
}
459
-#endif /* defined(_WIN32) */
459
+#endif /* defined(_WIN32) && !defined(__MINGW32__) */
460460
461461
462462
/*
463463
** Convert all arguments from mbcs (or unicode) to UTF-8. Then
464464
** search g.argv for arguments "--args FILENAME". If found, then
@@ -478,17 +478,17 @@
478478
int n; /* Number of bytes in one line */
479479
char *z; /* General use string pointer */
480480
char **newArgv; /* New expanded g.argv under construction */
481481
char const * zFileName; /* input file name */
482482
FILE * zInFile; /* input FILE */
483
-#if defined(_WIN32)
483
+#if defined(_WIN32) && !defined(__MINGW32__)
484484
WCHAR buf[MAX_PATH];
485485
#endif
486486
487487
g.argc = argc;
488488
g.argv = argv;
489
-#if defined(_WIN32)
489
+#if defined(_WIN32) && !defined(__MINGW32__)
490490
parse_windows_command_line(&g.argc, &g.argv);
491491
GetModuleFileNameW(NULL, buf, MAX_PATH);
492492
g.nameOfExe = fossil_unicode_to_utf8(buf);
493493
for(i=0; i<g.argc; i++) g.argv[i] = fossil_unicode_to_utf8(g.argv[i]);
494494
#else
495495
--- src/main.c
+++ src/main.c
@@ -341,11 +341,11 @@
341 if(g.db){
342 db_close(0);
343 }
344 }
345
346 #if defined(_WIN32)
347 /*
348 ** Parse the command-line arguments passed to windows. We do this
349 ** ourselves to work around bugs in the command-line parsing of MinGW.
350 ** It is possible (in theory) to only use this routine when compiling
351 ** with MinGW and to use built-in command-line parsing for MSVC and
@@ -454,11 +454,11 @@
454 }
455 argv[argc] = NULL;
456 *argcPtr = argc;
457 *((WCHAR ***)argvPtr) = argv;
458 }
459 #endif /* defined(_WIN32) */
460
461
462 /*
463 ** Convert all arguments from mbcs (or unicode) to UTF-8. Then
464 ** search g.argv for arguments "--args FILENAME". If found, then
@@ -478,17 +478,17 @@
478 int n; /* Number of bytes in one line */
479 char *z; /* General use string pointer */
480 char **newArgv; /* New expanded g.argv under construction */
481 char const * zFileName; /* input file name */
482 FILE * zInFile; /* input FILE */
483 #if defined(_WIN32)
484 WCHAR buf[MAX_PATH];
485 #endif
486
487 g.argc = argc;
488 g.argv = argv;
489 #if defined(_WIN32)
490 parse_windows_command_line(&g.argc, &g.argv);
491 GetModuleFileNameW(NULL, buf, MAX_PATH);
492 g.nameOfExe = fossil_unicode_to_utf8(buf);
493 for(i=0; i<g.argc; i++) g.argv[i] = fossil_unicode_to_utf8(g.argv[i]);
494 #else
495
--- src/main.c
+++ src/main.c
@@ -341,11 +341,11 @@
341 if(g.db){
342 db_close(0);
343 }
344 }
345
346 #if defined(_WIN32) && !defined(__MINGW32__)
347 /*
348 ** Parse the command-line arguments passed to windows. We do this
349 ** ourselves to work around bugs in the command-line parsing of MinGW.
350 ** It is possible (in theory) to only use this routine when compiling
351 ** with MinGW and to use built-in command-line parsing for MSVC and
@@ -454,11 +454,11 @@
454 }
455 argv[argc] = NULL;
456 *argcPtr = argc;
457 *((WCHAR ***)argvPtr) = argv;
458 }
459 #endif /* defined(_WIN32) && !defined(__MINGW32__) */
460
461
462 /*
463 ** Convert all arguments from mbcs (or unicode) to UTF-8. Then
464 ** search g.argv for arguments "--args FILENAME". If found, then
@@ -478,17 +478,17 @@
478 int n; /* Number of bytes in one line */
479 char *z; /* General use string pointer */
480 char **newArgv; /* New expanded g.argv under construction */
481 char const * zFileName; /* input file name */
482 FILE * zInFile; /* input FILE */
483 #if defined(_WIN32) && !defined(__MINGW32__)
484 WCHAR buf[MAX_PATH];
485 #endif
486
487 g.argc = argc;
488 g.argv = argv;
489 #if defined(_WIN32) && !defined(__MINGW32__)
490 parse_windows_command_line(&g.argc, &g.argv);
491 GetModuleFileNameW(NULL, buf, MAX_PATH);
492 g.nameOfExe = fossil_unicode_to_utf8(buf);
493 for(i=0; i<g.argc; i++) g.argv[i] = fossil_unicode_to_utf8(g.argv[i]);
494 #else
495
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -13,14 +13,14 @@
1313
#
1414
1515
#### Select one of MinGW, MinGW-64 (32-bit) or MinGW-w64 (64-bit) compilers.
1616
# By default, this is an empty string (i.e. use the native compiler).
1717
#
18
-# PREFIX =
18
+PREFIX =
1919
# PREFIX = mingw32-
2020
# PREFIX = i686-pc-mingw32-
21
-PREFIX = i686-w64-mingw32-
21
+# PREFIX = i686-w64-mingw32-
2222
# PREFIX = x86_64-w64-mingw32-
2323
2424
#### The toplevel directory of the source tree. Fossil can be built
2525
# in a directory that is separate from the source tree. Just change
2626
# the following to point from the build directory to the src/ folder.
@@ -42,19 +42,19 @@
4242
#
4343
# FOSSIL_ENABLE_JSON = 1
4444
4545
#### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
4646
#
47
-FOSSIL_ENABLE_SSL = 1
47
+# FOSSIL_ENABLE_SSL = 1
4848
4949
#### Enable scripting support via Tcl/Tk
5050
#
51
-FOSSIL_ENABLE_TCL = 1
51
+# FOSSIL_ENABLE_TCL = 1
5252
5353
#### Load Tcl using the stubs mechanism
5454
#
55
-FOSSIL_ENABLE_TCL_STUBS = 1
55
+# FOSSIL_ENABLE_TCL_STUBS = 1
5656
5757
#### Use the Tcl source directory instead of the install directory?
5858
# This is useful when Tcl has been compiled statically with MinGW.
5959
#
6060
FOSSIL_TCL_SOURCE = 1
6161
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -13,14 +13,14 @@
13 #
14
15 #### Select one of MinGW, MinGW-64 (32-bit) or MinGW-w64 (64-bit) compilers.
16 # By default, this is an empty string (i.e. use the native compiler).
17 #
18 # PREFIX =
19 # PREFIX = mingw32-
20 # PREFIX = i686-pc-mingw32-
21 PREFIX = i686-w64-mingw32-
22 # PREFIX = x86_64-w64-mingw32-
23
24 #### The toplevel directory of the source tree. Fossil can be built
25 # in a directory that is separate from the source tree. Just change
26 # the following to point from the build directory to the src/ folder.
@@ -42,19 +42,19 @@
42 #
43 # FOSSIL_ENABLE_JSON = 1
44
45 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
46 #
47 FOSSIL_ENABLE_SSL = 1
48
49 #### Enable scripting support via Tcl/Tk
50 #
51 FOSSIL_ENABLE_TCL = 1
52
53 #### Load Tcl using the stubs mechanism
54 #
55 FOSSIL_ENABLE_TCL_STUBS = 1
56
57 #### Use the Tcl source directory instead of the install directory?
58 # This is useful when Tcl has been compiled statically with MinGW.
59 #
60 FOSSIL_TCL_SOURCE = 1
61
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -13,14 +13,14 @@
13 #
14
15 #### Select one of MinGW, MinGW-64 (32-bit) or MinGW-w64 (64-bit) compilers.
16 # By default, this is an empty string (i.e. use the native compiler).
17 #
18 PREFIX =
19 # PREFIX = mingw32-
20 # PREFIX = i686-pc-mingw32-
21 # PREFIX = i686-w64-mingw32-
22 # PREFIX = x86_64-w64-mingw32-
23
24 #### The toplevel directory of the source tree. Fossil can be built
25 # in a directory that is separate from the source tree. Just change
26 # the following to point from the build directory to the src/ folder.
@@ -42,19 +42,19 @@
42 #
43 # FOSSIL_ENABLE_JSON = 1
44
45 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
46 #
47 # FOSSIL_ENABLE_SSL = 1
48
49 #### Enable scripting support via Tcl/Tk
50 #
51 # FOSSIL_ENABLE_TCL = 1
52
53 #### Load Tcl using the stubs mechanism
54 #
55 # FOSSIL_ENABLE_TCL_STUBS = 1
56
57 #### Use the Tcl source directory instead of the install directory?
58 # This is useful when Tcl has been compiled statically with MinGW.
59 #
60 FOSSIL_TCL_SOURCE = 1
61

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button