Skip to content

Commit

Permalink
Make the -! option active by default if GMT is build with /DPS_NO_DUP
Browse files Browse the repository at this point in the history
Build GMT with /DPS_NO_DUP or use add_definitions(/DPS_NO_DUP) in ConfigUser.cmake
  • Loading branch information
joa-quim committed Nov 29, 2024
1 parent b436425 commit 53beb8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/psconvert.c
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,10 @@ EXTERN_MSC int GMT_psconvert (void *V_API, int mode, void *args) {

old_transparency_code_needed = (gsVersion.major == 9 && gsVersion.minor < 53);

#ifdef PS_NO_DUP /* sets option -! by default. Build GMT with /DPS_NO_DUP or use add_definitions(/DPS_NO_DUP) in ConfigUser.cmake */
Ctrl->O.active = true;
#endif

if (old_transparency_code_needed && Ctrl->O.active) {
Ctrl->O.active = false;
GMT_Report (API, GMT_MSG_WARNING, "gs version %s does not support the -! option - please upgrade to 9.53 or later\n", GSstring);
Expand Down

0 comments on commit 53beb8e

Please sign in to comment.