Browse Source

Fixed compilation error on Windows (printing filetime)

refactor
3 years ago
parent
commit
3ac321991a
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      source/Printer.h

+ 8
- 1
source/Printer.h View File

@@ -100,7 +100,14 @@ inline void print_printdata(t_printdata& pd) {
cout << "outbmp: " << pd.outbmp << endl;
#ifdef _WIN32
cout << "hfile: " << pd.hfile << endl;
cout << "modified: " << pd.modified << endl;
// cout << "modified: " << pd.modified << endl;
{
char str[30];
int ok = Filetimetotext(&pd.modified, str, 30);
if (ok) {
cout << str << endl;
}
}
cout << "hbmp: " << pd.hbmp << endl;
cout << "attributes: " << pd.attributes << endl;
#elif __linux__

Loading…
Cancel
Save