Skip to content

Safestring include toupper header#35

Open
divneil wants to merge 2 commits into
intel:masterfrom
divneil:safestring-include-toupper-header
Open

Safestring include toupper header#35
divneil wants to merge 2 commits into
intel:masterfrom
divneil:safestring-include-toupper-header

Conversation

@divneil

@divneil divneil commented Sep 26, 2019

Copy link
Copy Markdown

No description provided.

o While compiling for non-Linux based platforms where errno.h
  is not available, a new compile time flag is included.

o Defining __LOCAL_ERRNO__ allows the safestring to compile
  without looking for errno.h

Signed-off-by: Divneil Rai Wadhawan <divneil.r.wadhawan@intel.com>
o toupper() suggests to include <ctype.h> as the header file for its
  declaration. So, added the same.

Signed-off-by: Divneil Rai Wadhawan <divneil.r.wadhawan@intel.com>
@danintel

danintel commented Oct 2, 2019

Copy link
Copy Markdown

The PR header does not match the actual changes made, which adds __LOCAL_ERRNO__ and duplicates PR #34

@divneil

divneil commented Oct 3, 2019

Copy link
Copy Markdown
Author

The PR header does not match the actual changes made, which adds __LOCAL_ERRNO__ and duplicates PR #34

Actually, I pushed the new patch over the top of the previous patch, so, github is showing like that. Once #34 is merged and with a rebase, #35 will only show 1 commit. Please let me know if its okay, otherwise, I will push a new patch over master.

Comment thread safeclib/strcasecmp_s.c
#include "safe_str_constraint.h"
#include "safe_str_lib.h"

#include <ctype.h>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

safeclib_private.h has it defined, can you re-check? Or you missed STDC_HEADERS somehow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants