Skip to content

Commit 1ef6274

Browse files
more tweaks to compile on Win32
1 parent 92adfea commit 1ef6274

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

src/import.cc

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,6 @@ extern char *sqlite3_win32_utf8_to_mbcs_v2(const char *, int);
2121
extern LPWSTR sqlite3_win32_utf8_to_unicode(const char *zText);
2222
#endif
2323

24-
/* On Windows, we normally run with output mode of TEXT so that \n characters
25-
** are automatically translated into \r\n. However, this behavior needs
26-
** to be disabled in some cases (ex: when generating CSV output and when
27-
** rendering quoted strings that contain \n characters). The following
28-
** routines take care of that.
29-
*/
30-
#if defined(_WIN32) || defined(WIN32)
31-
static void setBinaryMode(FILE *file, int isOutput){
32-
if( isOutput ) fflush(file);
33-
_setmode(_fileno(file), _O_BINARY);
34-
}
35-
static void setTextMode(FILE *file, int isOutput){
36-
if( isOutput ) fflush(file);
37-
_setmode(_fileno(file), _O_TEXT);
38-
}
39-
#else
40-
# define setBinaryMode(X,Y)
41-
# define setTextMode(X,Y)
42-
#endif
43-
44-
4524
enum ColType { CT_NONE, CT_INT, CT_REAL, CT_TEXT };
4625

4726
// Number of rows to examine when determining column types

0 commit comments

Comments
 (0)