Fossil SCM

Correct sense of _WIN32 conditional compilation

andygoth 2017-10-14 22:19 UTC andygoth-enhanced-symlink
Commit 1226e3ef524c758d8ffb09523d9882fb95664cd8a9dd594621c3bca95fd67400
1 file changed +1 -1
+1 -1
--- src/vfile.c
+++ src/vfile.c
@@ -210,11 +210,11 @@
210210
oldMtime = db_column_int64(&q, 7);
211211
origSize = db_column_int64(&q, 6);
212212
currentSize = file_wd_size(zName);
213213
currentMtime = file_wd_mtime(0);
214214
origPerm = db_column_int(&q, 8);
215
-#ifndef _WIN32
215
+#ifdef _WIN32
216216
/* For Windows, if the "manifest" setting contains the "l" flag and the
217217
** "manifest.symlinks" file exists, use its contents to determine which
218218
** files do and do not have the symlink permission. */
219219
if( !manifestSymlinks ){
220220
currentPerm = origPerm;
221221
--- src/vfile.c
+++ src/vfile.c
@@ -210,11 +210,11 @@
210 oldMtime = db_column_int64(&q, 7);
211 origSize = db_column_int64(&q, 6);
212 currentSize = file_wd_size(zName);
213 currentMtime = file_wd_mtime(0);
214 origPerm = db_column_int(&q, 8);
215 #ifndef _WIN32
216 /* For Windows, if the "manifest" setting contains the "l" flag and the
217 ** "manifest.symlinks" file exists, use its contents to determine which
218 ** files do and do not have the symlink permission. */
219 if( !manifestSymlinks ){
220 currentPerm = origPerm;
221
--- src/vfile.c
+++ src/vfile.c
@@ -210,11 +210,11 @@
210 oldMtime = db_column_int64(&q, 7);
211 origSize = db_column_int64(&q, 6);
212 currentSize = file_wd_size(zName);
213 currentMtime = file_wd_mtime(0);
214 origPerm = db_column_int(&q, 8);
215 #ifdef _WIN32
216 /* For Windows, if the "manifest" setting contains the "l" flag and the
217 ** "manifest.symlinks" file exists, use its contents to determine which
218 ** files do and do not have the symlink permission. */
219 if( !manifestSymlinks ){
220 currentPerm = origPerm;
221

Keyboard Shortcuts

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