1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-29 13:01:14 +03:00

stop using leading underscores in macro names

Underscored macros are reserved for the compiler / standard lib / etc.
Stop using them in user code.

We used them as header guards in `src` and in `__FILESIZE` in `example`.

Closes #1248
This commit is contained in:
Viktor Szakats
2023-11-25 11:52:00 +00:00
parent 7494881617
commit c6589b8823
19 changed files with 57 additions and 57 deletions

View File

@ -30,9 +30,9 @@
#include <stdio.h>
#if defined(_MSC_VER)
#define __FILESIZE "I64u"
#define LIBSSH2_FILESIZE_MASK "I64u"
#else
#define __FILESIZE "llu"
#define LIBSSH2_FILESIZE_MASK "llu"
#endif
static const char *pubkey = "/home/username/.ssh/id_rsa.pub";
@ -208,7 +208,7 @@ int main(int argc, char *argv[])
}
if(attrs.flags & LIBSSH2_SFTP_ATTR_SIZE) {
printf("%8" __FILESIZE " ", attrs.filesize);
printf("%8" LIBSSH2_FILESIZE_MASK " ", attrs.filesize);
}
printf("%s\n", mem);