Skip to content

Commit

Permalink
Clean up stray COBALT ifdefs (#3737)
Browse files Browse the repository at this point in the history
Replace with STARBOARD for consistent usage across the codebase.

b/150410605
  • Loading branch information
kaidokert committed Jul 3, 2024
1 parent 841cda0 commit 89d3ea5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion third_party/boringssl/src/crypto/x509/by_dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static int dir_ctrl(X509_LOOKUP *ctx, int cmd, const char *argp, long argl,
switch (cmd) {
case X509_L_ADD_DIR:
if (argl == X509_FILETYPE_DEFAULT) {
#if defined(COBALT)
#if defined(OPENSSL_SYS_STARBOARD)
// We don't expect to use the default certs dir.
OPENSSL_PUT_ERROR(X509, X509_R_LOADING_CERT_DIR);
#else
Expand Down
2 changes: 1 addition & 1 deletion third_party/libxml/src/include/libxml/HTMLparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ XMLPUBFUN int XMLCALL
#if defined(STARBOARD)
XMLPUBFUN void XMLCALL
htmlEmitImpliedRootLevelParagraph(int val);
#endif // defined(COBALT)
#endif // defined(STARBOARD)

#ifdef LIBXML_PUSH_ENABLED
/**
Expand Down
2 changes: 1 addition & 1 deletion v8/src/base/platform/platform-win32.cc
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ int OS::SNPrintF(char* str, int length, const char* format, ...) {


int OS::VSNPrintF(char* str, int length, const char* format, va_list args) {
#if defined(COBALT)
#if defined(V8_OS_STARBOARD)
// In testing, _vsnprintf_s can fill result's tail with unexpected
// characters if strlen(str) < length. Switching to vsnprintf is what Cobalt
// uses for msvs platforms currently.
Expand Down

0 comments on commit 89d3ea5

Please sign in to comment.