Opened 15 years ago
Closed 15 years ago
#3138 closed enhancement (fixed)
Wrap getcwd in cpl_config.h with a #ifndef
Reported by: | jluis | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.7.0 |
Component: | default | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: |
Description
Hi,
We added some linking capability with the GDAL lib inside GMT. However, on Windows we get lots of warnings of the type
...\gdal\include\cpl_config.h(23) : warning C4005: 'getcwd' :macro redefinition ...\GMT\src\gmt_notunix.h(173) : see previous definition of 'getcwd'
So can the getcwd macro in cpl_config.h be wrapped with an #ifndef ?
Thanks
Joaquim Luis
Change History (1)
comment:1 by , 15 years ago
Milestone: | → 1.7.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in r17886 by adding a '#ifndef getcwd' test.