Changeset View
Changeset View
Standalone View
Standalone View
plugins/debuggercommon/tests/debuggees/debugeepath.cpp
Show All 14 Lines | |||||
15 | * GNU General Public License for more details. | 15 | * GNU General Public License for more details. | ||
16 | * | 16 | * | ||
17 | * You should have received a copy of the GNU General Public License | 17 | * You should have received a copy of the GNU General Public License | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #include <iostream> | 22 | #include <iostream> | ||
23 | #ifndef _MSC_VER | ||||
23 | #include <unistd.h> | 24 | #include <unistd.h> | ||
25 | #else | ||||
26 | #include <direct.h> | ||||
27 | #define getcwd _getcwd | ||||
28 | #endif // !_MSC_VER | ||||
24 | 29 | | |||
25 | int main() | 30 | int main() | ||
26 | { | 31 | { | ||
27 | char buf[512]; | 32 | char buf[512]; | ||
28 | getcwd(buf, sizeof(buf)); | 33 | getcwd(buf, sizeof(buf)); | ||
29 | std::cout << buf << '/' << std::endl; | 34 | std::cout << buf << '/' << std::endl; | ||
30 | return 0; | 35 | return 0; | ||
31 | } | 36 | } |