Skip to content

Commit

Permalink
[DEBUG] Fix DBGSOCK macro definition to work if/when DEBUG_SOCK debug…
Browse files Browse the repository at this point in the history
…ging macro is defined

* Previously, if one uncommented the line `#define DEBUG_SOCK` in `sr_port/iosocketdef.h`
  and did a build, one would get a linker error saying `FFLUSH` is undefined. This is
  because the the `DBGSOCK()` macro invoked the `DBGFPF()` macro which in turn used the
  `FFLUSH` macro and assumed it is defined. This definition happens in `gtmio.h` so that
  is now included before defining `DBGSOCK()` macro.
  • Loading branch information
nars1 committed Jan 31, 2022
1 parent cb24eb8 commit 652c6b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sr_port/iosocketdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2001-2019 Fidelity National Information *
* Services, Inc. and/or its subsidiaries. All rights reserved. *
* *
* Copyright (c) 2018-2020 YottaDB LLC and/or its subsidiaries. *
* Copyright (c) 2018-2022 YottaDB LLC and/or its subsidiaries. *
* All rights reserved. *
* *
* This source code contains the intellectual property *
Expand Down Expand Up @@ -52,6 +52,7 @@ typedef struct
*/
/* #define DEBUG_SOCK */
#ifdef DEBUG_SOCK
# include "gtmio.h"
# define DBGSOCK(X) DBGFPF(X)
# define DBGSOCK_ONLY(X) X
#else
Expand Down

0 comments on commit 652c6b1

Please sign in to comment.