Skip to content

Commit 656d902

Browse files
committed
add build date macros for windows executables
1 parent 5de97d4 commit 656d902

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

misc/gen_color_map.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ void usage() {
2020
using namespace std;
2121
cout << "Usage:" << endl;
2222
cout << " gen_color_map <input.txt> <output.gif>" << endl;
23+
#if defined(_MSC_VER)
24+
printf("Executable built at %s %s", __DATE__, __TIME__);
25+
#endif
2326
}
2427

2528
int main(int argc, char **argv) {

src/minemap.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ void usage() {
4949
printf("\t\tOther versions are not supported yet.\n");
5050
printf("\t-v, --verbose\n");
5151
printf("\t\tOptional, Turn on verbose output\n");
52+
#if defined(_MSC_VER)
53+
printf("Executable built at %s %s", __DATE__, __TIME__);
54+
#endif
5255
}
5356

5457
int main(int argc, char **argv) {

src/pamenim.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ void usage() {
2727
printf("\t\tOther versions are not supported yet.\n");
2828
printf("\t-o, --output OUTPUT\n");
2929
printf("\t\tRequired, output picture\n");
30+
#if defined(_MSC_VER)
31+
printf("Executable built at %s %s", __DATE__, __TIME__);
32+
#endif
3033
}
3134

3235
int main(int argc, char **argv) {

0 commit comments

Comments
 (0)