Skip to content

Commit

Permalink
guard include of unistd.h
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmin committed Feb 15, 2024
1 parent 83a7815 commit ede415b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packager/media/formats/mp2t/es_parser_teletext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

#include <packager/media/formats/mp2t/es_parser_teletext.h>

#if defined(OS_WIN)
#include <windows.h>
#else
#include <unistd.h>
#endif

#include <packager/media/base/bit_reader.h>
#include <packager/media/base/text_stream_info.h>
#include <packager/media/base/timestamp.h>
Expand Down
1 change: 0 additions & 1 deletion packager/media/formats/mp2t/es_parser_teletext.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#ifndef PACKAGER_MEDIA_FORMATS_MP2T_ES_PARSER_TELETEXT_H_
#define PACKAGER_MEDIA_FORMATS_MP2T_ES_PARSER_TELETEXT_H_

#include <unistd.h>
#include <cstdint>
#include <string>
#include <unordered_map>
Expand Down

0 comments on commit ede415b

Please sign in to comment.