Changeset 26649 for main/trunk/greenstone2/common-src/src
- Timestamp:
- 2013-01-10T15:23:59+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/src/getpw/getpw.cpp
r23048 r26649 54 54 55 55 // include crypt 56 #if defined(_ _WIN32__)56 #if defined(_MSC_VER) 57 57 # include <windows.h> 58 58 # include <stdio.h> … … 60 60 #else 61 61 # include "config.h" 62 # i f defined(HAVE_CRYPT_H)62 # include <getpass.h> 63 63 # include <crypt.h> 64 # endif 64 65 65 66 66 # if defined(HAVE_UNISTD_H) … … 70 70 but for now we'll do nothing about it... */ 71 71 72 #endif /* not WIN32*/72 #endif /* not _MSC_VER */ 73 73 74 74 #include <string.h> 75 75 //#include <pwd.h> 76 76 77 #if defined(_ _WIN32__)77 #if defined(_MSC_VER) 78 78 char* getPassword(HANDLE hSTDIN) 79 79 { … … 127 127 128 128 for (i=0; i<3; i++) { 129 #if defined(_ _WIN32__)129 #if defined(_MSC_VER) 130 130 HANDLE hSTDIN; 131 131 DWORD fdwMode, fdwPrevMode; … … 165 165 strcpy (c, a); 166 166 167 #if defined(_ _WIN32__)167 #if defined(_MSC_VER) 168 168 cerr << "Re-enter password: "; 169 169 char* b = getPassword(hSTDIN);
Note:
See TracChangeset
for help on using the changeset viewer.