sources/version.cpp

changeset 201
1bfa1cdffb02
parent 190
90bf9049e5eb
equal deleted inserted replaced
200:3fb775db4829 201:1bfa1cdffb02
77 #else 77 #else
78 static char buffer[256] = {0}; 78 static char buffer[256] = {0};
79 79
80 if (buffer[0] == '\0') 80 if (buffer[0] == '\0')
81 { 81 {
82 if (strcmp (HG_BRANCH, "default") != 0) 82 #ifdef HG_BRANCH
83 sprintf (buffer, "%s-%s (%s)", version_string(), HG_NODE, HG_BRANCH); 83 sprintf (buffer, "%s-%s (%s)", version_string(), HG_NODE, HG_BRANCH);
84 else 84 #else
85 sprintf (buffer, "%s-%s", version_string(), HG_NODE); 85 sprintf (buffer, "%s-%s", version_string(), HG_NODE);
86 #endif
86 } 87 }
87 88
88 return buffer; 89 return buffer;
89 #endif 90 #endif
90 } 91 }

mercurial