Include <cstdlib> in Toy Lexer examples. (#110449)

These files all use `strtod` - make sure to include a proper header for
this function. Otherwise, building MLIR fails on some systems after the
recent commit 1b5f6916199ce09244cdb52c6911f2028e6ca95a which removed
inclusion of `<cmath>` and thus broke transitive inclusion of
`<stdlib.h>` in these headers.
This commit is contained in:
Alexey Samsonov 2024-09-30 11:20:32 -07:00 committed by GitHub
parent 41145feb77
commit 8ab50da589
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#include "llvm/ADT/StringRef.h"
#include <cstdlib>
#include <memory>
#include <string>

View File

@ -15,6 +15,7 @@
#include "llvm/ADT/StringRef.h"
#include <cstdlib>
#include <memory>
#include <string>

View File

@ -15,6 +15,7 @@
#include "llvm/ADT/StringRef.h"
#include <cstdlib>
#include <memory>
#include <string>

View File

@ -15,6 +15,7 @@
#include "llvm/ADT/StringRef.h"
#include <cstdlib>
#include <memory>
#include <string>

View File

@ -15,6 +15,7 @@
#include "llvm/ADT/StringRef.h"
#include <cstdlib>
#include <memory>
#include <string>

View File

@ -15,6 +15,7 @@
#include "llvm/ADT/StringRef.h"
#include <cstdlib>
#include <memory>
#include <string>

View File

@ -15,6 +15,7 @@
#include "llvm/ADT/StringRef.h"
#include <cstdlib>
#include <memory>
#include <string>